Browse Source

unset PRC_SAVE_DESCRIPTIONS in optimized builds to reduce memory usage

rdb 14 years ago
parent
commit
c9138166fa
1 changed files with 3 additions and 3 deletions
  1. 3 3
      makepanda/makepanda.py

+ 3 - 3
makepanda/makepanda.py

@@ -1833,12 +1833,12 @@ def WriteConfigSettings():
     if (GetOptimize() <= 3):
         dtool_config["DO_MEMORY_USAGE"] = '1'
 
-    #if (GetOptimize() <= 1):
-    #    dtool_config["DO_PIPELINING"] = '1'
-
     if (GetOptimize() <= 3):
         dtool_config["NOTIFY_DEBUG"] = '1'
 
+    if (GetOptimize() >= 4):
+        dtool_config["PRC_SAVE_DESCRIPTIONS"] = 'UNDEF'
+
     # Now that we have OS_SIMPLE_THREADS, we can support
     # SIMPLE_THREADS on exotic architectures like win64, so we no
     # longer need to disable it for this platform.