I'm developing a rolling scene based game I'm loading all the entities from a XML file and create them in the Loading Scene recently I increase the game width , and by doing so , in the whole level I have about 300 entities (instead of 100+-) But this cause a performance problems , the game is "Lagging" \ "jumping" and everything move slow.
I'm loading the entities with the "LevelLoader".
I tried to add:
levelObject.setCullingEnabled(true);
before returning the object in :
public IEntity onLoadEntity(final String pEntityName, final Attributes pAttributes){...}
and also set Dithering in the engineOptions:
engineOptions.getRenderOptions().setDithering(true);
but it didn't help...
I'm implementing the sprite creating from XML as Matin does in his Tutorial:
http://www.matim-dev.com/full-game-tutorial---part-11.html
Is there a better way to handle such multy entities? or a better why to improve the performance?