Reduce CPU usage
authorMiriam Ruiz <miriam@debian.org>
Sun, 30 Nov 2008 17:26:41 +0000 (30 18:26 +0100)
committerMiriam Ruiz <miriam@debian.org>
Sun, 30 Nov 2008 17:26:41 +0000 (30 18:26 +0100)
Based on patch from "trick" (see http://bugs.debian.org/440377 for details)
Copyright (C) 2007  Joey Hess <joeyh@debian.org>

gfx.cpp

diff --git a/gfx.cpp b/gfx.cpp
index 041ee76..1533d39 100644 (file)
--- a/gfx.cpp
+++ b/gfx.cpp
@@ -312,6 +312,8 @@ int main(int argc, char * argv[])
                                videoExposed = 0;\r
                        }\r
 \r
+                       SDL_Delay(10);\r
+\r
 #ifdef USE_BBTABLET\r
                        // Tablet ////////////////////////\r
                        bbTabletEvent evt;\r