From 0f51f3b7e30fc9f7559c50efd169c7a752a45bf6 Mon Sep 17 00:00:00 2001 From: Steel Titanium Date: Tue, 5 Mar 2019 22:07:53 -0500 Subject: [PATCH 1/4] Don't skip frames in software mode --- src/sdl/i_video.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index 2a77604d..0568dcee 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -1355,8 +1355,9 @@ void I_FinishUpdate(void) if (rendermode == render_none) return; //Alam: No software or OpenGl surface - if (I_SkipFrame()) - return; + // Don't skip frames + //if (I_SkipFrame()) + //return; if (cv_ticrate.value) SCR_DisplayTicRate(); From 7731fe8c2441740bccc4bc09531253336c523d00 Mon Sep 17 00:00:00 2001 From: Steel Titanium Date: Thu, 7 Mar 2019 18:20:57 -0500 Subject: [PATCH 2/4] Fix unused function error --- src/sdl/i_video.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index 0568dcee..10c78c71 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -1325,7 +1325,7 @@ void I_UpdateNoBlit(void) // // Returns true if it thinks we can afford to skip this frame // from PrBoom's src/SDL/i_video.c -static inline boolean I_SkipFrame(void) +/*static inline boolean I_SkipFrame(void) { static boolean skip = false; @@ -1340,12 +1340,12 @@ static inline boolean I_SkipFrame(void) if (!paused) return false; /* FALLTHRU */ - case GS_WAITINGPLAYERS: + /*case GS_WAITINGPLAYERS: return skip; // Skip odd frames default: return false; } -} +}*/ // // I_FinishUpdate From 0e2cefe251843d40dea2414c7519f231d61b4f08 Mon Sep 17 00:00:00 2001 From: Steel Titanium Date: Thu, 7 Mar 2019 18:52:27 -0500 Subject: [PATCH 3/4] Properly comment out the function --- src/sdl/i_video.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index 10c78c71..53aa351c 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -1325,7 +1325,8 @@ void I_UpdateNoBlit(void) // // Returns true if it thinks we can afford to skip this frame // from PrBoom's src/SDL/i_video.c -/*static inline boolean I_SkipFrame(void) +#if 0 +static inline boolean I_SkipFrame(void) { static boolean skip = false; @@ -1340,12 +1341,13 @@ void I_UpdateNoBlit(void) if (!paused) return false; /* FALLTHRU */ - /*case GS_WAITINGPLAYERS: + case GS_WAITINGPLAYERS: return skip; // Skip odd frames default: return false; } -}*/ +} +#endif // // I_FinishUpdate From 77649ef6d1fdcb820dbc3ec13037f16974b95190 Mon Sep 17 00:00:00 2001 From: Steel Titanium Date: Fri, 8 Mar 2019 18:51:55 -0500 Subject: [PATCH 4/4] Always return false instead. --- src/sdl/i_video.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index 53aa351c..f64a429a 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -1325,9 +1325,9 @@ void I_UpdateNoBlit(void) // // Returns true if it thinks we can afford to skip this frame // from PrBoom's src/SDL/i_video.c -#if 0 static inline boolean I_SkipFrame(void) { +#if 0 static boolean skip = false; if (rendermode != render_soft) @@ -1346,8 +1346,9 @@ static inline boolean I_SkipFrame(void) default: return false; } -} #endif + return false; +} // // I_FinishUpdate @@ -1357,9 +1358,8 @@ void I_FinishUpdate(void) if (rendermode == render_none) return; //Alam: No software or OpenGl surface - // Don't skip frames - //if (I_SkipFrame()) - //return; + if (I_SkipFrame()) + return; if (cv_ticrate.value) SCR_DisplayTicRate();