From eb0bc23d6ee165318b98be7a144db405f4c1db9b Mon Sep 17 00:00:00 2001 From: riccardom Date: Sun, 24 May 2009 08:46:12 +0000 Subject: [PATCH] Adapt to new frameskip api, there's something strange here, at frameskip 1 i have 30 more fps and the poor frameskip limiter does not kick in. --- desmume/src/gtk/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/desmume/src/gtk/main.cpp b/desmume/src/gtk/main.cpp index 04bc2ba91..423070626 100644 --- a/desmume/src/gtk/main.cpp +++ b/desmume/src/gtk/main.cpp @@ -1455,11 +1455,10 @@ gboolean EmuLoop(gpointer data) } desmume_cycle(); /* Emule ! */ - NDS_SkipFrame(true); for (i = 0; i < Frameskip; i++) { + NDS_SkipNextFrame(); desmume_cycle(); } - NDS_SkipFrame(false); _updateDTools(); gtk_widget_queue_draw( pDrawingArea );