MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / D3DeferHandler

Function D3DeferHandler

Descent3/descent.cpp:668–684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

666extern bool Skip_render_game_frame;
667extern void GameFrame(void);
668void D3DeferHandler(bool is_active) {
669 if (is_active) {
670 // perform any needed io system processing in the background
671 ddio_Frame();
672 } else {
673 // JEFF - If the game is in idle loop and we are in multiplayer game
674 // then process the game frame so we stay alive in the game.
675 if (Game_mode & GM_MULTI) {
676 Skip_render_game_frame = true;
677 GameFrame();
678 Skip_render_game_frame = false;
679 }
680 }
681
682 // JEFF - Commented out due to new idle processing
683 nw_DoNetworkIdle();
684}
685
686// ---------------------------------------------------------------------------
687// this is called when you hit a debug break!

Callers

nothing calls this directly

Calls 3

ddio_FrameFunction · 0.85
GameFrameFunction · 0.85
nw_DoNetworkIdleFunction · 0.85

Tested by

no test coverage detected