Added gc
This commit is contained in:
parent
651513d595
commit
b3164e9df6
|
|
@ -8,7 +8,7 @@
|
|||
#
|
||||
##############################################################################
|
||||
|
||||
import os,sys
|
||||
import os,sys,gc
|
||||
from pandac.PandaModules import *
|
||||
|
||||
class EggCacher:
|
||||
|
|
@ -82,6 +82,7 @@ class EggCacher:
|
|||
sys.stdout.flush()
|
||||
if (cached) and (cached.hasData()==0):
|
||||
self.pandaloader.loadSync(fn, self.loaderopts)
|
||||
gc.collect()
|
||||
ModelPool.releaseAllModels()
|
||||
progress += size
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue