From 1e07f71d8e8645f9060fcb2ed13f4cb4e0267982 Mon Sep 17 00:00:00 2001 From: notaz Date: Fri, 2 Mar 2012 23:11:45 +0200 Subject: [PATCH] gpulib: yet another frameskip hack or should I call it heuristic? --- plugins/gpulib/gpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/gpulib/gpu.c b/plugins/gpulib/gpu.c index df0099c6..aefd53b6 100644 --- a/plugins/gpulib/gpu.c +++ b/plugins/gpulib/gpu.c @@ -397,7 +397,8 @@ static noinline int do_cmd_buffer(uint32_t *data, int count) continue; } - if (gpu.frameskip.active && gpu.frameskip.allow) + // 0xex cmds might affect frameskip.allow, so pass to do_cmd_list_skip + if (gpu.frameskip.active && (gpu.frameskip.allow || ((data[pos] >> 24) & 0xf0) == 0xe0)) pos += do_cmd_list_skip(data + pos, count - pos, &cmd); else { pos += do_cmd_list(data + pos, count - pos, &cmd); -- 2.39.5