==================== R_IssueRenderCommands Called by R_EndFrame each frame ==================== */
| 135 | ==================== |
| 136 | */ |
| 137 | static 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 | ============ |
no test coverage detected