File: 15_100percentbug.patch

package info (click to toggle)
visualboyadvance 1.8.0.dfsg-5.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 12,196 kB
  • sloc: cpp: 93,502; ansic: 48,351; sh: 3,561; makefile: 382; lex: 72; yacc: 60; sed: 16
file content (17 lines) | stat: -rw-r--r-- 527 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
From: Matthew Harvey <m2harvey@uwaterloo.ca>
Subject: Fix 100% CPU usage on SDL
Bug-Debian: https://bugs.debian.org/740292
Reviewed-By: Etienne Millon <me@emillon.org>

diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp
index ea00154..ab6c5e3 100644
--- a/src/gtk/window.cpp
+++ b/src/gtk/window.cpp
@@ -1583,6 +1584,7 @@ void Window::vComputeFrameskip(int _iRate)
         if (iDelay > 0)
         {
           m_uiThrottleDelay = iDelay;
+          SDL_Delay(iDelay);
         }
       }
       iWantedSpeed = m_iThrottle;