diff --git a/direct/src/showbase/ShowBase.py b/direct/src/showbase/ShowBase.py index 2ce7103cb6..d187bd215b 100644 --- a/direct/src/showbase/ShowBase.py +++ b/direct/src/showbase/ShowBase.py @@ -274,6 +274,10 @@ class ShowBase(DirectObject.DirectObject): # Now we can make the TaskManager start using the new globalClock. taskMgr.globalClock = globalClock + affinity = self.config.GetInt('client-cpu-affinity', -1) + if affinity != -1: + TrueClock.getGlobalPtr().setCpuAffinity(1 << affinity) + __builtin__.base = self __builtin__.render2d = self.render2d __builtin__.aspect2d = self.aspect2d