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. --- operationscore/SmootCoreObject.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'operationscore/SmootCoreObject.py') diff --git a/operationscore/SmootCoreObject.py b/operationscore/SmootCoreObject.py index 291519a..c481776 100644 --- a/operationscore/SmootCoreObject.py +++ b/operationscore/SmootCoreObject.py @@ -8,6 +8,9 @@ class SmootCoreObject(object): self.validateArgs(self.className()+'.params') self.lock = thread.allocate_lock() self.init() #call init of inheriting class + #put everything into attributes for speed + for key in argDict: + setattr(self, key, argDict[key]) # self.__setitem__ = self.argDict.__setitem__ # self.__getitem__ = self.argDict.__getitem__ def init(self): -- cgit v1.2.3