[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Re: Detect dragging of main window
On Jan 23, 5:45 pm, Ian Mallett <geometr...@xxxxxxxxx> wrote:
> For me at least, when dragging, nothing happens inside of pygame. If your
> game is simple and not time based (framerate dependent), this should not,
> then, be a problem. If you have time based game logic, though, as soon as
> you release, all the game objects will be updated for the time between
> frames + the time moving, causing a jump. To solve this latter case, I
> recommend not updating your game objects if the delta T between frames is
> large (signaling the window was moved). Ian
Yes, my game is time based. I've implemented this workaround and it
works. But I wonder what would be a good time threshold... I've set it
to 100 ms now.