Optimization Commands: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Added a little space.)
m (tidy & categorized)
Line 1: Line 1:
[[Console command]]s and [[console variable]]s used for [[optimization]].
[[ConCommand|Console commands]] and [[ConVar|console variables]] used for [[Optimization (level design)|optimization]].


;+showbudget:Displays an informational panel displaying engine performance. See [[showbudget]].
;+showbudget:Displays an informational panel displaying engine performance. See [[showbudget]].
Line 5: Line 5:


====cl_showfps [0/1/2]====
====cl_showfps [0/1/2]====
Draws a meter at the top right of the screen that measures 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 an actual reading of the current number displayed, but <code>cl_showfps 2</code> compensates for that.
Draws a meter at the top right of the screen that measures FPS (frames per 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 an actual reading of the current number displayed, but <code>cl_showfps 2</code> compensates for that.


;cl_showfps 0:The default setting. No meter is displayed.
;cl_showfps 0:The default setting. No meter is displayed.
Line 14: Line 14:
====mat_leafvis [0/1]====
====mat_leafvis [0/1]====


;mat_leafvis 0:This setting is default. The current leaf wireframe is not displayed.
;mat_leafvis 0:This setting is default. The current [[visleaf|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.


Line 23: Line 23:
;mat_wireframe 0:This setting is default. It doesn't display any wireframes.
;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 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 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.
;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.
 
[[Category:Level Design]]

Revision as of 15:52, 30 January 2008

Console commands and console variables used for optimization.

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


cl_showfps [0/1/2]

Draws a meter at the top right of the screen that measures FPS (frames per 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 an actual reading of the current number displayed, but cl_showfps 2 compensates for that.

cl_showfps 0
The default setting. No meter is displayed.
cl_showfps 1
A simple FPS meter is displayed.
cl_showfps 2
"Smooth FPS" - The meter contains a parathesis containing the lowest and the highest FPS measured from the moment the meter was turned on.


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.