Enabling the debug draw modes
In this recipe, we will explore the different modes that you can enable in the Sandbox to be able to track down and spot the performance and assets problems.
Getting ready
This recipe will make extensive use of the console and in the previous performance cases you must have a populated level opened for the majority of these functions.
How to do it...
As our goal is to provide the best performance, we need to be able to visually observe the impact of using different debugging features, especially how to use them in combination with each other:
The first debug view that we will use will be the
r_stats 1
view. Enterr_stats 1
into the console to enable this: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...