Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
STJr
SRB2
Commits
fdd65506
Commit
fdd65506
authored
2 years ago
by
Eidolon
Browse files
Options
Downloads
Patches
Plain Diff
Only run view update hack in no-render mode
parent
46603d60
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1783
Uncapped
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/p_tick.c
+16
-13
16 additions, 13 deletions
src/p_tick.c
with
16 additions
and
13 deletions
src/p_tick.c
+
16
−
13
View file @
fdd65506
...
...
@@ -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
();
...
...
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