diff --git a/samples/shader-terrain/main.py b/samples/shader-terrain/main.py index 8d500b4d05..5121992642 100644 --- a/samples/shader-terrain/main.py +++ b/samples/shader-terrain/main.py @@ -21,6 +21,14 @@ class ShaderTerrainDemo(ShowBase): gl-coordinate-system default window-title Panda3D ShaderTerrainMesh Demo filled-wireframe-apply-shader true + + # 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