From 0910dc507ab928df5a70f29ce7414a5812baaa24 Mon Sep 17 00:00:00 2001 From: zeromus Date: Sun, 1 Jul 2012 08:26:30 +0000 Subject: [PATCH] improve (very coarsely; it isnt perfect) timing of swapbuffers process to at least sequence it correctly with regards to vblank. fixes #3538901 DBZ Kai Butouden 3d on character select --- desmume/src/NDSSystem.cpp | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/desmume/src/NDSSystem.cpp b/desmume/src/NDSSystem.cpp index d84461eee..63323081b 100644 --- a/desmume/src/NDSSystem.cpp +++ b/desmume/src/NDSSystem.cpp @@ -1632,11 +1632,6 @@ static void execHardware_hstart() //when the vcount hits 262, vblank ends (oam pre-renders by one scanline) execHardware_hstart_vblankEnd(); } - else if(nds.VCount==191) - { - //when the vcount hits 191, the 3d vblank occurs (maybe because OAM doesnt need to run anymore, so we can power it down, and give the 3d as much time as possible?) - gfx3d_VBlankSignal(); - } else if(nds.VCount==192) { //turn on vblank status bit @@ -1647,6 +1642,18 @@ static void execHardware_hstart() if(T1ReadWord(MMU.ARM9_REG, 4) & 0x8) MMU.reg_IF_pending[ARMCPU_ARM9] |= (1<