- cpp Code: Select all
for(list<BaseObject*>::Iterator it = objectList.begin(); it != objectList.end(); it++)
BaseObject *currentObject = *it;
The state object is part of the game's state machine, and for the current state it runs through the iterates through a list of objects to run the update loop for. Each object has its own update.
Now, my question is: is there a more efficient way to do this with irrlicht? This is running rather slow it seems, I don't think I'm getting very good frame-rates. Any suggestions/fixes would be great! Thanks!