Skip to content

Commit

Permalink
remove unnecessary vcount wait (see #46)
Browse files Browse the repository at this point in the history
  • Loading branch information
skyfloogle committed May 20, 2024
1 parent 376f7f2 commit ddefe80
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions source/3ds/gui_hard.c
Original file line number Diff line number Diff line change
Expand Up @@ -1622,15 +1622,6 @@ void toggleVsync(bool enable) {
if (enable == old_enable) return;
old_enable = enable;
gspWaitForVBlank();
if (!is_citra) {
// wait for touchscreen's VCount to roll over to avoid potential glitches on IPS panels
// https://github.com/skyfloogle/red-viper/issues/46#issuecomment-2034326985
u32 old_vcount, vcount = 0;
do {
old_vcount = vcount;
GSPGPU_ReadHWRegs(0x400554, &vcount, 4);
} while (vcount >= old_vcount);
}
GSPGPU_WriteHWRegs(0x400424, &vtotal_top, 4);
GSPGPU_WriteHWRegs(0x400524, &vtotal_bottom, 4);
}
Expand Down

0 comments on commit ddefe80

Please sign in to comment.