fix fake vag clock and ocean with lag (#1558)

* fix the fake vag clock

* fix ocean in lag
This commit is contained in:
ManDude
2022-06-26 02:26:48 +01:00
committed by GitHub
parent 91fa0122d8
commit 892e5a6c49
4 changed files with 5 additions and 23 deletions
+2 -1
View File
@@ -14,6 +14,7 @@
#include "game/common/game_common_types.h"
#include "game/common/loader_rpc_types.h"
#include "game/common/player_rpc_types.h"
#include "game/graphics/gfx.h"
#include "game/sce/iop.h"
#include "game/sound/sndshim.h"
@@ -459,7 +460,7 @@ s32 VBlank_Handler() {
gFrameNum++;
if (gFakeVAGClockRunning && !gFakeVAGClockPaused) {
gFakeVAGClock += 17;
gFakeVAGClock += (s32)(1024 / Gfx::g_global_settings.target_fps);
}
// We don't need this, our DMA's are instant