mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-10 07:12:03 +00:00
Merge branch 'mobj-jitter' into 'next'
Ensure view interpolates between T-1 to T See merge request KartKrew/Kart-Public!317
This commit is contained in:
parent
a69b3b0260
commit
2473c7d7cc
1 changed files with 15 additions and 0 deletions
15
src/p_tick.c
15
src/p_tick.c
|
@ -23,6 +23,7 @@
|
|||
#include "lua_script.h"
|
||||
#include "lua_hook.h"
|
||||
#include "k_kart.h"
|
||||
#include "r_main.h"
|
||||
#include "r_fps.h"
|
||||
|
||||
// Object place
|
||||
|
@ -811,6 +812,20 @@ void P_Ticker(boolean run)
|
|||
{
|
||||
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
|
||||
for (i = 0; i <= splitscreen; i++)
|
||||
{
|
||||
player_t *player = &players[displayplayers[i]];
|
||||
BOOL skyVisible = skyVisiblePerPlayer[i];
|
||||
if (skyVisible && skyboxmo[0] && cv_skybox.value)
|
||||
{
|
||||
R_SkyboxFrame(player);
|
||||
}
|
||||
R_SetupFrame(player, (skyboxmo[0] && cv_skybox.value));
|
||||
}
|
||||
}
|
||||
|
||||
P_MapEnd();
|
||||
|
|
Loading…
Reference in a new issue