mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-22 18:58:21 +00:00
(CTR/3DS) improve vsync.
gfxSwapBuffersGpu needs to be called immediately after initiating a display transfer.
This commit is contained in:
parent
c4d46ce09f
commit
c3ac725269
@ -253,7 +253,6 @@ static bool ctr_frame(void* data, const void* frame,
|
||||
svcWaitSynchronization(gspEvents[GSPEVENT_PPF], 20000000);
|
||||
svcClearEvent(gspEvents[GSPEVENT_PPF]);
|
||||
|
||||
gfxSwapBuffersGpu();
|
||||
frames++;
|
||||
|
||||
if (ctr->vsync)
|
||||
@ -361,6 +360,7 @@ static bool ctr_frame(void* data, const void* frame,
|
||||
ctrGuDisplayTransfer(true, CTR_GPU_FRAMEBUFFER, 240,400, CTRGU_RGBA8,
|
||||
gfxGetFramebuffer(GFX_TOP, GFX_LEFT, NULL, NULL), 240,400,CTRGU_RGB8, CTRGU_MULTISAMPLE_NONE);
|
||||
|
||||
gfxSwapBuffersGpu();
|
||||
RARCH_PERFORMANCE_STOP(ctrframe_f);
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user