Skip to content
Snippets Groups Projects
Commit fdd65506 authored by Eidolon's avatar Eidolon
Browse files

Only run view update hack in no-render mode

parent 46603d60
No related branches found
No related tags found
1 merge request!1783Uncapped
......@@ -25,6 +25,7 @@
#include "i_system.h" // I_GetPreciseTime
#include "r_main.h"
#include "r_fps.h"
#include "i_video.h" // rendermode
// Object place
#include "m_cheat.h"
......@@ -772,30 +773,32 @@ void P_Ticker(boolean run)
if (run)
{
player_t *player1;
R_UpdateLevelInterpolators();
R_UpdateViewInterpolation();
// Hack: ensure newview is assigned every tic.
// Ensures view interpolation is T-1 to T in poor network conditions
// We need a better way to assign view state decoupled from game logic
player1 = &players[displayplayer];
if (player1->mo && skyboxmo[0] && cv_skybox.value)
if (rendermode != render_none)
{
R_SkyboxFrame(player1);
}
R_SetupFrame(player1);
player_t *player1 = &players[displayplayer];
if (player1->mo && skyboxmo[0] && cv_skybox.value)
{
R_SkyboxFrame(player1);
}
R_SetupFrame(player1);
if (splitscreen)
{
player_t *player2 = &players[secondarydisplayplayer];
if (player2->mo && skyboxmo[0] && cv_skybox.value)
if (splitscreen)
{
R_SkyboxFrame(player2);
player_t *player2 = &players[secondarydisplayplayer];
if (player2->mo && skyboxmo[0] && cv_skybox.value)
{
R_SkyboxFrame(player2);
}
R_SetupFrame(player2);
}
R_SetupFrame(player2);
}
}
P_MapEnd();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment