Optimization Commands: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 5: Line 5:
====mat_leafvis [0/1]====
====mat_leafvis [0/1]====


;mat_leafvis 0:...
;mat_leafvis 0:This setting is default. The current leaf wireframe is not displayed.
This setting is default. The current leaf wireframe is not displayed.
;mat_leafvis 1:Displays the leaf that the player is currently occupying in red wireframe.
;mat_leafvis 1:...
Displays the leaf that the player is currently occupying in red wireframe.


====mat_wireframe [0/1/2/3]====
====mat_wireframe [0/1/2/3]====

Revision as of 10:33, 8 March 2006

Commands and variables used for optimization.

+showbudget
Displays an informational panel displaying engine performance. See showbudget.

mat_leafvis [0/1]

mat_leafvis 0
This setting is default. The current leaf wireframe is not displayed.
mat_leafvis 1
Displays the leaf that the player is currently occupying in red wireframe.

mat_wireframe [0/1/2/3]

Displays the BSP visleaf wireframe for the map. Useful when optimizing for seeing how visleafs are arranged.

mat_wireframe 0
This setting is default. It doesn't display any wireframes.
mat_wireframe 1
This setting displays all the leaves that is visible in the PVS, using red polygons. It is useful for determining how many leaves are calculated in total, but has the most potential for clutter.
mat_wireframe 2
This setting displays all the brush leaves in the players line-of-sight, using green polygons, hiding the ones he cannot see.
mat_wireframe 3
This setting displays the leaves using pink squares, identical to the current leaf displayed with the mat_leafvis variable.