forgot to look for the changed var
This commit is contained in:
parent
e060ccdf6b
commit
37cd5ba80e
1 changed files with 1 additions and 1 deletions
2
vloed.py
2
vloed.py
|
|
@ -68,7 +68,7 @@ class Canvas(object):
|
|||
changed = False
|
||||
while True:
|
||||
changed = self.Draw() or changed
|
||||
if time.time() - lasttime >= 1 / self.fps:
|
||||
if time.time() - lasttime >= 1 / self.fps and changed:
|
||||
del(self.pixels) # release the lock on these pixels so we can flip
|
||||
pygame.display.flip()
|
||||
changed = False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue