Ben Sizer(e)k dio:
> On Jul 8, 6:02 pm, altern <[EMAIL PROTECTED]> wrote:
>> i noticed that CPU usage goes up when the mouse is moved, no matter if
>> on_mouse_motion is declared or not. In a simple example i am working on
>> it goes up from 5% to 15%.
> 
> That isn't surprising, given that there is an event to handle. Even if
> Pyglet doesn't do anything with it, the application still receives
> events.

i see. of course. i just thought it feels quite a big jump for just a 
mouse movement. but i guess there is a lot going on under the hood.

>> The frame rate goes up as well from 35 to 75 fps.
> 
> That, however, is a bit surprising. Either it's some sort of bug, or a
> scheduling artifact where rendering happens to be quicker because of
> fewer context switches, perhaps. Bear in mind that it may not be as
> big a difference as it appears - see if you can turn v-sync off, and
> try again.

i tried with v-sync off and i get same results. it is not a big deal, 
just feels weird. I thought that maybe i could control fps down to lower 
cpu use.

thanks

enrike


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to