Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Kart-Public
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
X.organic
Kart-Public
Commits
80625232
Commit
80625232
authored
2 years ago
by
Eidolon
Browse files
Options
Downloads
Patches
Plain Diff
Ensure view interpolates between T-1 to T
parent
89d08372
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/p_tick.c
+15
-0
15 additions, 0 deletions
src/p_tick.c
with
15 additions
and
0 deletions
src/p_tick.c
+
15
−
0
View file @
80625232
...
...
@@ -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
...
...
@@ -813,6 +814,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
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment