From dbf7c30c81d05270782dcc9e75cffc6248a4ed45 Mon Sep 17 00:00:00 2001 From: dborth Date: Wed, 22 Oct 2008 19:07:03 +0000 Subject: [PATCH] add vsync --- source/ngc/gcvideo.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/ngc/gcvideo.c b/source/ngc/gcvideo.c index ac900ce..41bdbf5 100644 --- a/source/ngc/gcvideo.c +++ b/source/ngc/gcvideo.c @@ -110,7 +110,11 @@ vbgetback (void *arg) { while (1) { - SyncSpeed(); + if(GCSettings.timing != vmode_60hz) + VIDEO_WaitVSync(); + else + SyncSpeed(); + LWP_SuspendThread (vbthread); }