Looking for a speed up =)
Posted: Wed May 08, 2013 7:08 pm
Hi everybody. I'm looking for a way to speed up the game, I have 100x100 * 2 tiles, that's 20,000 tiles total on the map. I have air tiles and stuff, so "deleting" the tile isn't really going to work with the method I have, since reloading a loading a brand new map file would cause a complete reload which would take a long time.
Currently I have the tiles set to NOT receive events while out of vision, and in draw actor I have safeDraw which is written like this in global code:
I'm looking for the best way to increase performance. It wont go above 32/33 FPS (Which is fine if I cap my game at 30 but I want 60 if possible =D)
Currently I have the tiles set to NOT receive events while out of vision, and in draw actor I have safeDraw which is written like this in global code:
- Code: Select all
void safeDraw()
{
if((xscreen>640||xscreen<0) || (yscreen>480||yscreen<0))
{
VisibilityState("Event Actor", DISABLE);
}
else {
if(animpos>0)//air tiles :D
{
VisibilityState("Event Actor", ENABLE);
}
}
}
I'm looking for the best way to increase performance. It wont go above 32/33 FPS (Which is fine if I cap my game at 30 but I want 60 if possible =D)