It&#39;s not just animation, though, right? <br><br>Like the previous poster mentioned, any game that has a realtime simulation component is going to be using the CPU even when not responding to user input. Example of this would include games ranging from SimCity to Tetris.
<br><br>Similarly, any game with a computer player might use CPU when the human player isn&#39;t doing anything, whether it&#39;s a turn-based game like chess, or a realtime game like Galaga.<br><br>Also, for networked games, the local machine may have to use CPU when data comes in from a remote player.
<br><br>I would hesitate to use screensaver information outside of its intended use - I would certainly suspend most of my games when a screensaver activates, to be sure, but I would not rely on it to know when the user might be doing something else. For this, I imagine I&#39;d first look to see if my window has lost focus, and additionally have a game-specific means for reverting to a low-CPU use mode when left unattended for long periods.
<br><br>-Dave LeCompte<br><br><br><div class="gmail_quote">On Dec 10, 2007 11:36 AM, Jim Gettys &lt;<a href="mailto:jg@laptop.org">jg@laptop.org</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
In this case (animation), the games should &quot;go quiet&quot;, if there is no<br>user input after a short period (say, 30 seconds). &nbsp;It is pretty easy to<br>get the window system to tell you when it has been idle, I believe (the
<br>X screen saver extension, for example).<br><br>When no animation, applications should be quiet as a tomb...<br><br>We can&#39;t rely on young kids to remember when to suspend a computer, I<br>don&#39;t think....<br><font color="#888888">
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - Jim<br></font><div><div></div><div class="Wj3C7c"><br>On Mon, 2007-12-10 at 17:28 -0200, Roberto Fagá wrote:<br>&gt; Jim<br>&gt;<br>&gt; This is specific of games which use many resources, like animations
<br>&gt; and some more advanced graphics. I also think will be nice if screen /<br>&gt; video driver supports other screen resolution, like 600x450 and less<br>&gt; color depth if the only depth that XO works is 16bits. This can save
<br>&gt; CPU/GPU to some games that need speed but not so much resolution...<br>&gt;<br>&gt; The 100% using CPU happens only if you don&#39;t use anything to control<br>&gt; framerate, and for it you can use the pygame clock, 
time.sleep and the<br>&gt; event.wait if you can freeze application while you wait for an event.<br>&gt; Can happens too if the game / pygame application uses many resources,<br>&gt; exactly as a GTK/Hippo activity does.<br>
&gt;<br>&gt; []&#39;s<br>&gt;<br>&gt; On Dec 10, 2007 5:11 PM, Jim Gettys &lt;<a href="mailto:jg@laptop.org">jg@laptop.org</a>&gt; wrote:<br>&gt; &gt; There is one piece of this discussion that is scaring the bejesus out of
<br>&gt; &gt; me: the idea that an application should take *any* cpu time when the<br>&gt; &gt; user isn&#39;t doing anything... &nbsp;Is this specific to pygame based<br>&gt; &gt; applications? Or am I missing something?<br>&gt; &gt;
<br>&gt; &gt; Electricity doesn&#39;t grow on trees, you know.... &nbsp;In Peru, 55,000 of the<br>&gt; &gt; machines will be going to schools/kids with *no* electricity. &nbsp;And this<br>&gt; &gt; is just the beginning...<br>&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;- Jim
<br>&gt; &gt;<br>&gt; &gt; --<br>&gt; &gt; Jim Gettys<br>&gt; &gt; One Laptop Per Child<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Devel mailing list<br>
&gt; &gt; <a href="mailto:Devel@lists.laptop.org">Devel@lists.laptop.org</a><br>&gt; &gt; <a href="http://lists.laptop.org/listinfo/devel" target="_blank">http://lists.laptop.org/listinfo/devel</a><br>&gt; &gt;<br></div></div>
--<br><div class="Ih2E3d">Jim Gettys<br>One Laptop Per Child<br><br><br>_______________________________________________<br></div><div><div></div><div class="Wj3C7c">Games mailing list<br><a href="mailto:Games@lists.laptop.org">
Games@lists.laptop.org</a><br><a href="http://lists.laptop.org/listinfo/games" target="_blank">http://lists.laptop.org/listinfo/games</a><br></div></div></blockquote></div><br>