r4040 - in packages/trunk/hex-a-hop/debian: . patches

Jens Seidel jseidel-guest at alioth.debian.org
Sun Sep 2 21:40:56 UTC 2007


Author: jseidel-guest
Date: 2007-09-02 21:40:56 +0000 (Sun, 02 Sep 2007)
New Revision: 4040

Added:
   packages/trunk/hex-a-hop/debian/patches/reduce_cpu_usage.patch
Modified:
   packages/trunk/hex-a-hop/debian/changelog
   packages/trunk/hex-a-hop/debian/patches/series
Log:
* Reduced the CPU load a little bit. Thanks to Joey Hess
  <joeyh at debian.org> for the patch. Closes: #440377
  There is more to do to get it properly fixed.


Modified: packages/trunk/hex-a-hop/debian/changelog
===================================================================
--- packages/trunk/hex-a-hop/debian/changelog	2007-09-02 18:55:05 UTC (rev 4039)
+++ packages/trunk/hex-a-hop/debian/changelog	2007-09-02 21:40:56 UTC (rev 4040)
@@ -2,8 +2,11 @@
 
   [Jens Seidel]
   * Fixed a few errors in the code found with valgrind.
+  * Reduced the CPU load a little bit. Thanks to Joey Hess
+    <joeyh at debian.org> for the patch. Closes: #440377
+    There is more to do to get it properly fixed.
 
- -- Jens Seidel <jensseidel at users.sf.net>  Fri, 31 Aug 2007 00:15:00 +0200
+ -- Jens Seidel <jensseidel at users.sf.net>  Sun, 02 Sep 2007 23:45:00 +0200
 
 hex-a-hop (0.0.20070315-4) unstable; urgency=low
 

Added: packages/trunk/hex-a-hop/debian/patches/reduce_cpu_usage.patch
===================================================================
--- packages/trunk/hex-a-hop/debian/patches/reduce_cpu_usage.patch	                        (rev 0)
+++ packages/trunk/hex-a-hop/debian/patches/reduce_cpu_usage.patch	2007-09-02 21:40:56 UTC (rev 4040)
@@ -0,0 +1,17 @@
+# Copyright (C) 2007  Joey Hess <joeyh at debian.org>
+# based on patch from "trick" (see #440377 for details)
+# Licensed under the GPL, see /usr/share/common-licenses/GPL
+
+Index: hex-a-hop.svn/gfx.cpp
+===================================================================
+--- hex-a-hop.svn.orig/gfx.cpp	2007-09-02 23:19:13.000000000 +0200
++++ hex-a-hop.svn/gfx.cpp	2007-09-02 23:20:24.000000000 +0200
+@@ -404,6 +404,8 @@
+ 				videoExposed = 0;
+ 			}
+ 
++			SDL_Delay(10);
++
+ #ifdef USE_BBTABLET
+ 			// Tablet ////////////////////////
+ 			bbTabletEvent evt;

Modified: packages/trunk/hex-a-hop/debian/patches/series
===================================================================
--- packages/trunk/hex-a-hop/debian/patches/series	2007-09-02 18:55:05 UTC (rev 4039)
+++ packages/trunk/hex-a-hop/debian/patches/series	2007-09-02 21:40:56 UTC (rev 4040)
@@ -11,3 +11,4 @@
 i18n_increase_array_sizes.patch
 mouse_cursor_without_font.patch
 misc_errors.patch
+reduce_cpu_usage.patch




More information about the Pkg-games-commits mailing list