From 1679719e7ca8ce433c5714474a32c926161dc5b8 Mon Sep 17 00:00:00 2001 From: rcoh Date: Tue, 4 Jan 2011 17:23:30 -0500 Subject: Some performance improvements -- we also synchronize all the frames, giving us a meaning that even if things slow down, rendering doesn't look weird. --- pixelcore/Screen.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pixelcore/Screen.py') 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 -- cgit v1.2.3