[PyOpenGL-Users] Re: stale mouse events
Brought to you by:
mcfletch
From: Artem B. <ar...@v2...> - 2005-04-09 08:18:11
|
Artem Baguinski wrote: > hi > > i've discovered OpenGLContext the day before yesterday (as well as > numpy) and decided to give the thing a try and wrote a simple particle > system (it's just a bunch of particles moving in random directions with > random speed). > > if i "overload" my particle system with too many particles i get weird > trackball navigation behaviour - it seems it remembers all the mouse > events and then plays them back as it gets a chance (which may be > several seconds after i've dragged the mouse). > > i understand that i've wired my particles updation to the wrong place, > but i wonder what would the correct place be? I was thinking - could the reason be that events from timer have higher priority then events from the windowing system? then timer constantly causes the particle system to recalculate itself not leaving any time to check for mouse events. hmm... but then mouse wouldn't ever have any chance. I'm puzzled. I guess time for me to read the sources of events related part of OpenGLContext, thanks for splitting it into separate directory ;-) |