Only check if offscreen every 32 frames
@@ -103,6 +103,7 @@ void UpdateActors_b() {
}
// Check if actor is off screen
+ if (IS_FRAME_32) {
if (((UINT16)(screen_x + 32u) >= SCREENWIDTH_PLUS_64) ||
((UINT16)(screen_y + 32u) >= SCREENHEIGHT_PLUS_64)) {
// Mark off screen actor for removal
@@ -110,6 +111,7 @@ void UpdateActors_b() {
del_count++;
}
}
+ }
// Remove all offscreen actors
for (i = 0; i != del_count; i++) {
