Optimization Commands: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
Line 9: Line 9:


====mat_wireframe [0/1/2/3]====
====mat_wireframe [0/1/2/3]====
Displays the BSP visleaf wireframe for the map. Useful when optimizing for seeing how visleafs are arranged.
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 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 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 the leaves using pink squares, identical to the current leaf displayed with the mat_leafvis variable.
;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.

Revision as of 11:23, 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 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.