MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / R_IssueRenderCommands

Function R_IssueRenderCommands

neo/renderer/RenderSystem.cpp:137–157  ·  view source on GitHub ↗

==================== R_IssueRenderCommands Called by R_EndFrame each frame ==================== */

Source from the content-addressed store, hash-verified

135====================
136*/
137static void R_IssueRenderCommands( void ) {
138 if ( frameData->cmdHead->commandId == RC_NOP
139 && !frameData->cmdHead->next ) {
140 // nothing to issue
141 return;
142 }
143
144 // r_skipBackEnd allows the entire time of the back end
145 // to be removed from performance measurements, although
146 // nothing will be drawn to the screen. If the prints
147 // are going to a file, or r_skipBackEnd is later disabled,
148 // usefull data can be received.
149
150 // r_skipRender is usually more usefull, because it will still
151 // draw 2D graphics
152 if ( !r_skipBackEnd.GetBool() ) {
153 RB_ExecuteBackEndCommands( frameData->cmdHead );
154 }
155
156 R_ClearCommandChain();
157}
158
159/*
160============

Callers 2

EndFrameMethod · 0.85
CaptureRenderToFileMethod · 0.85

Calls 3

R_ClearCommandChainFunction · 0.85
GetBoolMethod · 0.45

Tested by

no test coverage detected