- if (!gpu.status.blanking && gpu.state.fb_dirty) {
- renderer_flush_queues();
- blit();
- gpu.state.fb_dirty = 0;
+ if (gpu.frameskip.set) {
+ if (!gpu.frameskip.frame_ready && gpu.frameskip.skipped_blits < 9) {
+ gpu.frameskip.skipped_blits++;
+ return;
+ }
+ gpu.frameskip.frame_ready = 0;
+ gpu.frameskip.skipped_blits = 0;