Pygame 闪烁 [英] Pygame flickering
本文介绍了Pygame 闪烁的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Pygame 一直闪烁,即使它调用了一次 pygame.display.update
.
Pygame keeps flickering, even though it calls pygame.display.update
once.
我认为问题出在 screen.fill
(src.py, function clear
) 上,但没有它就无法工作.
I believe the problem is on screen.fill
(src.py, function clear
), but it doesn't work without it.
完整代码:在 http://mindgamestore.tk/pygame_code/
推荐答案
解决了问题:pygame.display.flip
在 idraw
函数上被多次调用.
Solved the problem: pygame.display.flip
was being called more than once on idraw
function.
这篇关于Pygame 闪烁的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文