Code: Select all
void State::run()
{
for(list<BaseObject*>::Iterator it = objectList.begin(); it != objectList.end(); it++)
{
BaseObject *currentObject = *it;
currentObject->run();
}
}
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!