added client-cpu-affinity
This commit is contained in:
parent
da78fd9940
commit
6605f0fef3
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue