mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'retry-mobj-jitter' into 'master'
Ensure view interpolates between T-1 to T See merge request KartKrew/Kart!743
This commit is contained in:
commit
9213b7adbd
1 changed files with 15 additions and 0 deletions
15
src/p_tick.c
15
src/p_tick.c
|
|
@ -24,6 +24,7 @@
|
||||||
#include "lua_hook.h"
|
#include "lua_hook.h"
|
||||||
#include "m_perfstats.h"
|
#include "m_perfstats.h"
|
||||||
#include "i_system.h" // I_GetPreciseTime
|
#include "i_system.h" // I_GetPreciseTime
|
||||||
|
#include "r_main.h"
|
||||||
#include "r_fps.h"
|
#include "r_fps.h"
|
||||||
|
|
||||||
// Object place
|
// Object place
|
||||||
|
|
@ -782,6 +783,20 @@ void P_Ticker(boolean run)
|
||||||
{
|
{
|
||||||
R_UpdateLevelInterpolators();
|
R_UpdateLevelInterpolators();
|
||||||
R_UpdateViewInterpolation();
|
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
|
||||||
|
for (i = 0; i <= r_splitscreen; i++)
|
||||||
|
{
|
||||||
|
player_t *player = &players[displayplayers[i]];
|
||||||
|
const boolean skybox = (player->skybox.viewpoint && cv_skybox.value); // True if there's a skybox object and skyboxes are on
|
||||||
|
if (skybox)
|
||||||
|
{
|
||||||
|
R_SkyboxFrame(i);
|
||||||
|
}
|
||||||
|
R_SetupFrame(i);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
P_MapEnd();
|
P_MapEnd();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue