Hi,
MeshBatcher at row 154
if(item.texture != lastTexture || vertexCount + itemVertexCount > short.MaxValue)
it compare two texture, we can improve the check.
If we create different skeleton with the same file atlas, this check will detect as different texture because they are different instance, and it call FlushVertexArray many time.
Let's compare texture path and the fps for 100 different atlas increase over 20%
only two change:
in XnaTextureLoader class I insert at row 67
texture.Name = path;
otherwise is null.
in MeshBatcher class change the row 154 to:
if (i==0 || String.Equals(item.texture.Name , lastTexture.Name,StringComparison.OrdinalIgnoreCase) == false|| vertexCount + itemVertexCount > short.MaxValue)
best
Cristian