aboutsummaryrefslogtreecommitdiff
path: root/pixelcore/Screen.py
diff options
context:
space:
mode:
authorGravatar rcoh <rcoh@mit.edu>2011-01-04 17:23:30 -0500
committerGravatar rcoh <rcoh@mit.edu>2011-01-04 17:23:30 -0500
commit1679719e7ca8ce433c5714474a32c926161dc5b8 (patch)
treedc75dc66ee8695fe786df2b48c0e6911332ed7c5 /pixelcore/Screen.py
parent395e99394ead5d0d656e74fed23dc780652b6090 (diff)
Some performance improvements -- we also synchronize all the frames, giving us a meaning that even
if things slow down, rendering doesn't look weird.
Diffstat (limited to 'pixelcore/Screen.py')
-rw-r--r--pixelcore/Screen.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pixelcore/Screen.py b/pixelcore/Screen.py
index b002896..198bd3f 100644
--- a/pixelcore/Screen.py
+++ b/pixelcore/Screen.py
@@ -5,6 +5,7 @@ from operationscore.PixelMapper import *
import util.Search as Search
import util.ComponentRegistry as compReg
import util.Strings as Strings
+import util.TimeOps as timeops
import itertools
import sys
from logger import main_log
@@ -54,7 +55,6 @@ class Screen:
self.responseQueue = []
for response in tempQueue:
self.processResponse(response)
- [p.invalidateState() for p in self]
#public
def respond(self, responseInfo):
@@ -92,6 +92,7 @@ class Screen:
main_log.debug(str(len(pixelWeightList)))
main_log.debug(pixelWeightList)
PixelEvent.addPixelEventIfMissing(responseInfo)
+ currentTime = timeops.time()
for (pixel, weight) in pixelWeightList:
- pixel.processInput(responseInfo['PixelEvent'].scale(weight), 0) #TODO: z-index
+ pixel.processInput(responseInfo['PixelEvent'].scale(weight), 0, currentTime) #TODO: z-index