[gcompris/gcompris-9-6-1: 3/8] Some tuning on our renewable energy activity to slow down the wind farm.



commit 2d30b6d634ba08cf58e2574a8e5eb8919b8a9e85
Author: Bruno Coudoin <bruno coudoin free fr>
Date:   Wed Mar 23 00:11:56 2011 +0100

    Some tuning on our renewable energy activity to slow down the wind farm.
    
    On some system the wind farm was taking too much CPU.

 src/hydroelectric-activity/hydroelectric.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/hydroelectric-activity/hydroelectric.py b/src/hydroelectric-activity/hydroelectric.py
index 1ccc6b5..fc227ca 100644
--- a/src/hydroelectric-activity/hydroelectric.py
+++ b/src/hydroelectric-activity/hydroelectric.py
@@ -1070,7 +1070,7 @@ class Producer:
     self.prod_items[self.current_prod_item].props.visibility = \
         goocanvas.ITEM_VISIBLE
     if self.is_on and self.energy:
-      self.timer = gobject.timeout_add(150, self.anim_item)
+      self.timer = gobject.timeout_add(1000, self.anim_item)
     else:
       self.timer = 0
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]