At least one recent commit https://github.com/libgdx/libgdx/commit/
7020231ca8b1e14995d398603de525581e3d1282 has completely disabled VBO support in the SpriteBatch class for not so clear reasons.
My project uses GL20 for now only and I would like to use/test VBOs, so at least there's a way to bring back VBOs in spritebatch by using the forceVBO flag.
If someone could clarify why SpriteBatch was changed I would appreciate as well.
public Mesh (VertexDataType type, boolean isStatic, int maxVertices, int maxIndices, VertexAttribute... attributes) {\r
// if (type == VertexDataType.VertexArray && Gdx.graphics.isGL20Available()) type = VertexDataType.VertexBufferObject;\r
\r
- if (type == VertexDataType.VertexBufferObject) {\r
+ if (type == VertexDataType.VertexBufferObject || Mesh.forceVBO) {\r
vertices = new VertexBufferObject(isStatic, maxVertices, attributes);\r
indices = new IndexBufferObject(isStatic, maxIndices);\r
isVertexArray = false;\r