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

Re: [pygame] Window move oddity



Indeed.  That's what it does.

You should be able to put a maximum elapsed time for your frames.
That handles the moving window thing, and also if there's some other
pause from the OS.  Like if firefox plays a flash animation in the
background that uses up heaps of cpu blocking your program for a
while.

cu.

On Sat, Sep 27, 2008 at 4:17 AM, Aaron Maupin <maupin@xxxxxxxxxxxxxx> wrote:
>
> Well, immediately after posting I figured it out.  ;)  Moving the window causes the program to pause and thus when it comes back the delta time difference between frames spikes.  And then my screwy collision detection teleports the character much further than should be possible.
>
>> In certain situations, moving the game window (800x600) on the Windows desktop sometimes causes the main character to teleport upwards on screen to the next available platform.