From 7a9ffa7ee83e843259a74bc9552a449aae297a7a Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 4 Jun 2024 17:11:30 +0200 Subject: [PATCH] test remove all the networking crap from rendering code --- src/d_main.c | 2 -- src/hardware/hw_main.c | 7 +------ src/r_main.c | 6 ------ 3 files changed, 1 insertion(+), 14 deletions(-) diff --git a/src/d_main.c b/src/d_main.c index 0b4b2cc1c..ac6785a53 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -568,8 +568,6 @@ static boolean D_Display(void) } } - NetUpdate(); // send out any new accumulation - // It's safe to end the game now. if (G_GetExitGameFlag()) { diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index 7d92454f7..4395570a4 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -4277,6 +4277,7 @@ static void HWR_SortVisSprites(void) { gr_vsprorder[i] = HWR_GetVisSprite(i); } + qs22j(gr_vsprorder, gr_visspritecount, sizeof(gr_vissprite_t*), CompareVisSprites); } @@ -5679,9 +5680,6 @@ void HWR_RenderFrame(INT32 viewnumber, player_t *player, boolean skybox) } } - // check for new console commands. - NetUpdate(); - // Clear view, set viewport (glViewport), set perspective... HWR_ClearView(); @@ -5715,9 +5713,6 @@ void HWR_RenderFrame(INT32 viewnumber, player_t *player, boolean skybox) if (!skybox) HWR_DoPostProcessor(player); - // Check for new console commands. - NetUpdate(); - // added by Hurdler for correct splitscreen // moved here by hurdler so it works with the new near clipping plane HWD.pfnGClipRect(0, 0, vid.width, vid.height, NZCLIP_PLANE, FAR_ZCLIP_DEFAULT); diff --git a/src/r_main.c b/src/r_main.c index 464fad847..58810c37b 100644 --- a/src/r_main.c +++ b/src/r_main.c @@ -1717,9 +1717,6 @@ void R_RenderPlayerView(player_t *player) R_ClearVisibleFloorSplats(); #endif - // check for new console commands. - NetUpdate(); - // The head node is the last node output. ps_numbspcalls.value.i = ps_numpolyobjects.value.i = ps_numdrawnodes.value.i = 0; @@ -1777,9 +1774,6 @@ void R_RenderPlayerView(player_t *player) R_DrawMasked(); PS_STOP_TIMING(ps_sw_maskedtime); - // Check for new console commands. - NetUpdate(); - // save value to skyVisiblePerPlayer // this is so that P1 can't affect whether P2 can see a skybox or not, or vice versa for (i = 0; i <= splitscreen; i++)