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)