general: set cull bins

This commit is contained in:
Open Toontown 2019-11-22 18:43:24 -05:00
parent fb7fed72fc
commit 9c258294ab
2 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,3 @@
cull-bin gui-popup 60 unsorted
want-render2dp 1 want-render2dp 1
text-encoding utf8 text-encoding utf8
direct-wtext 0 direct-wtext 0
@ -12,8 +11,6 @@ collect-tcp 1
collect-tcp-interval 0.2 collect-tcp-interval 0.2
server-version sv1.0.47.38 server-version sv1.0.47.38
server-version-suffix server-version-suffix
cull-bin shadow 15 fixed
cull-bin ground 14 fixed
model-path resources model-path resources
dc-file etc/toon.dc dc-file etc/toon.dc
dc-file etc/otp.dc dc-file etc/otp.dc

View file

@ -143,6 +143,9 @@ class ToonBase(OTPBase.OTPBase):
tpMgr.setProperties('WLDisplay', WLDisplay) tpMgr.setProperties('WLDisplay', WLDisplay)
tpMgr.setProperties('WLEnter', WLEnter) tpMgr.setProperties('WLEnter', WLEnter)
del tpMgr del tpMgr
CullBinManager.getGlobalPtr().addBin('gui-popup', CullBinManager.BTUnsorted, 60)
CullBinManager.getGlobalPtr().addBin('shadow', CullBinManager.BTFixed, 15)
CullBinManager.getGlobalPtr().addBin('ground', CullBinManager.BTFixed, 14)
self.lastScreenShotTime = globalClock.getRealTime() self.lastScreenShotTime = globalClock.getRealTime()
self.accept('InputState-forward', self.__walking) self.accept('InputState-forward', self.__walking)
self.canScreenShot = 1 self.canScreenShot = 1