X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fgpu_neon%2Fgpu.c;h=c275d8342f82e588d495327b7cb35f57a8206f06;hp=2db43797c71c6db1d4febd4f6480c657809da183;hb=d84e376741b37109597cb3a08d31def4de3fc598;hpb=19e7cf877b6a925517238c59485edf5fe85bf2a1 diff --git a/plugins/gpu_neon/gpu.c b/plugins/gpu_neon/gpu.c index 2db43797..c275d834 100644 --- a/plugins/gpu_neon/gpu.c +++ b/plugins/gpu_neon/gpu.c @@ -61,7 +61,7 @@ static noinline void decide_frameskip(void) { gpu.frameskip.frame_ready = !gpu.frameskip.active; - if (!gpu.frameskip.active && *gpu.frameskip.advice) + if (!gpu.frameskip.active && (*gpu.frameskip.advice || gpu.frameskip.set == 1)) gpu.frameskip.active = 1; else gpu.frameskip.active = 0; @@ -133,7 +133,7 @@ void GPUwriteStatus(uint32_t data) case 0x05: gpu.screen.x = data & 0x3ff; gpu.screen.y = (data >> 10) & 0x3ff; - if (gpu.frameskip.enabled) + if (gpu.frameskip.set) decide_frameskip(); break; case 0x06: @@ -328,11 +328,12 @@ static int check_cmd(uint32_t *data, int count) start_vram_transfer(data[pos + 1], data[pos + 2], cmd == 0xc0); pos += len; } - - if (cmd == -1) + else if (cmd == -1) break; } + if (gpu.frameskip.active) + renderer_sync_ecmds(gpu.ex_regs); gpu.state.fb_dirty |= vram_dirty; return count - pos; @@ -498,6 +499,7 @@ long GPUfreeze(uint32_t type, GPUFreeze_t *freeze) gpu.regs[i] ^= 1; // avoid reg change detection GPUwriteStatus((i << 24) | (gpu.regs[i] ^ 1)); } + renderer_sync_ecmds(gpu.ex_regs); break; }