Am 21.07.2013 17:41, schrieb Andrew Barlow:
HiThis is just some testing code that demonstrates it.ÂÂTesting on Windows at the moment.ÂThe little unit should shuffle left and right whilst the app is running. This works fine until you move the Window.
On 21 July 2013 16:32, Noel Garwick <noel.garwick@xxxxxxxxx> wrote:
Please upload the code so others can test.
On Jul 21, 2013 11:18 AM, "Andrew Barlow" <andrew.barlow@xxxxxxxxx> wrote:
Hello!ÂI'm currently just playing around with the PyGame sprite prefabs andÂI was wondering ifÂanyone hadÂever come across the issue where if you move a windowed PyGame that's using LayeredDirty, all updates stop rendering?ÂIt looks like the game loop is still running, but my screen drawing seems to stop (even though the list of dirty rects keeps populating). The Window title even says "Not Responding" but the Python console output continues to print my dirty rects.ÂAny ideas as to why this might be?ÂI think its got something to do with the switching between updated regions and fullscreen updates Âin the LayrerdDirty group, but I really don't know!ÂI can uploadÂa zip of the code if that's of any help?ÂAny help with this would be hugely appreciated!ÂCheers
You need to pump the event queue somewhere in your main loop!
Either
pygame.event.pump()
or one of the event methods
pygame.event.get()
pygame.event.wait()
Otherwise the windows gets unresponsive after some time or some number of events that fills up the event queue (mouse generates many events).
If you still have the bug, write again.
~DR0ID