PyGame flickering issue
I've made several small programs in PyGame and for my latest attempt I have added scrolling (push arrow keys) but when it happens the sprites flicker. I've tried to pinpoint the issue but cannot.
The drawing section happens i开发者_JAVA技巧n engine.screen.py redraw() and update_window()
Github repository of code
Have you considered swapping lines 48 and 49 in screen.py? :) Not sure, but maybe you ought to call display.flip() after rendering the sprites?
Do you have vertical sync enabled? And set framerate to 60, for a nice look.
精彩评论