From 7a5ac180de138e1f9375cb92b1b1e1607c99d0b1 Mon Sep 17 00:00:00 2001 From: luigi__ Date: Sun, 5 Apr 2009 00:03:51 +0000 Subject: [PATCH] Yeah, I know, skipping 3D frames is nice with the soft rasterizer, but we can't do it until somebody figures out why the 2D/3D synchronization problem happens when doing it. It's so sad :( --- desmume/src/NDSSystem.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/desmume/src/NDSSystem.cpp b/desmume/src/NDSSystem.cpp index 6301abd88..c461362af 100644 --- a/desmume/src/NDSSystem.cpp +++ b/desmume/src/NDSSystem.cpp @@ -1419,6 +1419,7 @@ int NDS_LoadFirmware(const char *filename) void NDS_Sleep() { nds.sleeping = TRUE; } bool skipThisFrame = false; +bool skipThisFrame3D = false; void NDS_SkipFrame(bool skip) { skipThisFrame = skip; } @@ -1570,6 +1571,8 @@ u32 NDS_exec(s32 nb) GPU_ligne(&SubScreen, nds.VCount); } + skipThisFrame3D = skipThisFrame; + if(MMU.DMAStartTime[0][0] == 2) MMU_doDMA(0); if(MMU.DMAStartTime[0][1] == 2) @@ -1680,7 +1683,7 @@ u32 NDS_exec(s32 nb) } else if(nds.VCount==215) { - gfx3d_VBlankEndSignal(skipThisFrame); + gfx3d_VBlankEndSignal(false); } else if(nds.VCount==263) {