Deprecated useful console commands

VIEWMODE [Mode]

​ Sets the rendering mode of the game viewport to the specified mode. The available modes are:

ModeDescription
WIREFRAMEShows the wireframe of all meshes.
UNLITRenders meshes using only the diffuse channel of materials.
LITDefault. Renders meshes using their materials being affected by lighting.
DETAILLIGHTINGRenders meshes using a neutral-colored material with normals being affected by lighting.
LIGHTINGONLYRenders meshes using a neutral-colored material without normals being affected by lighting.
LIGHTCOMPLEXITYRenders meshes using a solid color based on the number of dynamic lights affecting the mesh. Black means no dynamic lights affect the mesh. As more lights affect the mesh, the color goes from green to red.
SHADERCOMPLEXITYRenders meshes using solid colors based on the number of shader instructions executed by the material applied to the surface. The colors range from green (0) to red (300) to pink (600) to white (900).

From https://docs.unrealengine.com/latest/INT/GettingStarted/RunningUnrealEngine/index.html

Console CommandDescription
'stat unit'Shows overall frame time as well as the game thread, rendering thread and GPU times. Whichever is the longest is the bottleneck. However GPU time contains idle time, so is only the bottleneck if it is the longest and stands alone.
Ctrl+Shift+. or 'recompileshaders changed'Recompile shaders that have changed since you last saved the .usf file. This will automatically happen on load.
Ctrl+Shift+; or 'profilegpu'Measure GPU timings for the view being rendered. You can view the results in the UI that pops up or in the engine log.
'Vis' or 'VisualizeTexture'Visualize the contents of various render targets with the ability to save as bmp.
'show x'Toggles specified show flag. Use 'show' to get the list of showflags and their current state. In the editor, use the viewport UI instead.
'pause'Pauses the game, but continues rendering. Any simulation rendering work will stop.
'slomo x'changes the game speed. Can be very useful for slowing down time without skipping simulation work, when profiling. For example 'slomo .01'
'debugcreateplayer 1'For testing splitscreen.
'r.CompositionGraphDebug'Execute to get a single frame dump of the composition graph of one frame (post processing and lighting).
'r.DumpShaderDebugInfo'When set to 1, will cause any shaders that are then compiled to dump debug info to GameName/Saved/ShaderDebugInfo
'r.RenderTargetPoolTest'Clears the texture returned by the rendertarget pool with a special color to track down color leaking bugs.
'r.SetRes'Set the display resolution for the current game view. Has no effect in the editor.
'r.ViewportTest'Allows to test different viewport rectangle configuations (in game only) as they can happen when using Matinee/Editor.
ToggleDrawEventsEmits helpful draw event markers for use with GPU Capture/PIX

Useful command lines when working on rendering:

CommandlineDescription
-d3ddebugEnables the D3D11 debug layer, useful for catching API errors.
-sm4Forces Feature Level SM4 with the D3D11 RHI.
-opengl3 / -opengl4Forces use of OpenGL RHI at the specified feature level.
-ddc=nosharedPrevents the use of network (shared) Derived Data Cache. Can be useful when debugging shader caching issues.
-VSPerf- Enables external VS Perf Profiler hooks
-VTune- Enables external VTune Profiler hooks

From https://docs.unrealengine.com/latest/INT/Programming/Rendering/index.html

* *


Last update: November 14, 2019