Browse Source

samples: add info about ShaderTerrainMesh optimization config vars

rdb 6 years ago
parent
commit
03041dde16
1 changed files with 8 additions and 0 deletions
  1. 8 0
      samples/shader-terrain/main.py

+ 8 - 0
samples/shader-terrain/main.py

@@ -20,6 +20,14 @@ class ShaderTerrainDemo(ShowBase):
             textures-power-2 none
             gl-coordinate-system default
             window-title Panda3D ShaderTerrainMesh Demo
+
+            # As an optimization, set this to the maximum number of cameras
+            # or lights that will be rendering the terrain at any given time.
+            stm-max-views 8
+
+            # Further optimize the performance by reducing this to the max
+            # number of chunks that will be visible at any given time.
+            stm-max-chunk-count 2048
         """)
 
         # Initialize the showbase