From 03041dde169a93c257355d3beea51eeb83485501 Mon Sep 17 00:00:00 2001 From: rdb Date: Sun, 17 Mar 2019 22:18:08 +0100 Subject: [PATCH] samples: add info about ShaderTerrainMesh optimization config vars --- samples/shader-terrain/main.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/samples/shader-terrain/main.py b/samples/shader-terrain/main.py index 10bffb3767..3d88331ae9 100644 --- a/samples/shader-terrain/main.py +++ b/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