Time for action – enabling Debug Draw modes
This example will include extensive use of the console, and as in the previous examples of this chapter, you must have a populated level opened in the editor application for majority of these functions.
As our goal is to provide the best performance, we need to be visually able to observe the impact of using different features, especially in combination with each other.
The first debug view that we will use is the
r_stats 1
view. Enable this view by typing inr_stats = 1
into the console within Sandbox.As you can see in the previous screenshot, this view breaks down the per-frame statistics of the renderer. This is extremely important as the render takes up the highest percentage, in most cases, of the frame time. It is also the most important view to use when following certain budget guidelines, as designers and artist have direct control over these variables by adjusting the number of lights in their viewable scenes or even by adjusting the decals...