Optimization Commands

From Valve Developer Community
Revision as of 12:28, 8 March 2006 by Andreasen (talk | contribs) (Added cl_showfps.)
Jump to navigation Jump to search

Console commands and console variables used for optimization.

+showbudget
Displays an informational panel displaying engine performance. See showbudget.
cl_showfps
Displays a meter measuring FPS (frames/second): Green is high/good, yellow not-so-high/not-so-good, and red is low/bad. Unfortunately the meter is updating way too fast for someone to get any better reading than that.

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 wireframe detail. It is useful for showing you how your map's brushwork has been split up by the engine. It is also useful to show you just what is being drawn in any given view.

mat_wireframe 0
This setting is default. It doesn't display any wireframes.
mat_wireframe 1
This setting displays all the framework 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 just the BSP leaves, using pink squares, identical to the current leaf displayed when setting the mat_leafvis variable to 1. Useful for seeing how visleafs are arranged.