Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/devtools/CompleteTestKit/dirtyTest2.py
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/CompleteTestKit/dirtyTest2.py')
-rw-r--r--devtools/CompleteTestKit/dirtyTest2.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/devtools/CompleteTestKit/dirtyTest2.py b/devtools/CompleteTestKit/dirtyTest2.py
index 7cad73b..ebed198 100644
--- a/devtools/CompleteTestKit/dirtyTest2.py
+++ b/devtools/CompleteTestKit/dirtyTest2.py
@@ -75,16 +75,17 @@ for aTrial in range(maxTrial):
print " -- Time to load"
+ clock = pygame.time.Clock()
+ clock.tick()
start = time()
- other = time()
for frame in range(FRAME):
dirtyList=[]
for image in range(numImages):
#move / collision detection
- groups[image].update(time() - other)
+ groups[image].update(clock.getTime())
+ clock.tick()
#individually blit each image group - add to list for update
dirtyList.extend(groups[image].draw(screen))
- other = time()
#draw the images flip/update
pygame.display.update(dirtyList)