kmonsoor / pyglet

Automatically exported from code.google.com/p/pyglet
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Polling not reactivated when Maximizing/Restore Window #534

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a resizable pyglet window without vsync.
2. Maximize the window
3. Note that _allow_polling was set to False but was not reset after resize was 
complete.

Windows 7, Python 2.7, Pyglet 1.1.4

A possible patch for this is attached.

Original issue reported on code.google.com by ar...@gmx.com on 16 Sep 2011 at 2:01

Attachments:

GoogleCodeExporter commented 9 years ago
Further investigation showed some more problems with this.
As soon as the mouse leaves the window mouse tracking is lost and 
_allow_polling is not reset when reentering. This always happens when clicking 
once on the titlebar.

The new patch should address all the issues.

Deactivated pooling massively decreases performance on Windows Vista and above 
due to timer resolution.

Original comment by ar...@gmx.com on 16 Sep 2011 at 3:09

Attachments: