Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Richard Gobeille
EDuke32
Commits
122aee01
Commit
122aee01
authored
Dec 25, 2022
by
Jordon Moss
Browse files
Apply TerminX's rotatesprite interpolation fix. (Fixes interp jitter when framerate is over 120fps)
parent
a9c797dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/build/src/engine.cpp
View file @
122aee01
...
...
@@ -7767,20 +7767,20 @@ static void dorotatesprite(int32_t sx, int32_t sy, int32_t z, int16_t a, int16_t
{
vec4_t
lerp
,
goal
;
int16_t
picnum
,
flags
;
uint32_t
clock
;
ClockTicks
clock
;
}
smooth
[
MAXUNIQHUDID
];
auto
&
sm
=
smooth
[
uniqid
];
auto
&
sm0
=
smooth
[
0
];
vec4_t
const
goal
=
{
sx
,
sy
,
z
,
a
};
auto
const
clock
=
t
imer120
()
;
auto
const
clock
=
t
otalclock
;
sm0
=
{
goal
,
goal
,
picnum
,
(
int16_t
)(
dastat
&
~
RS_TRANS_MASK
),
clock
};
auto
lerpWouldLookDerp
=
[
&
](
void
)
{
return
!
(
dastat
&
RS_LERP
)
||
!
sm
.
clock
||
clock
-
sm
.
clock
>
4
return
!
(
dastat
&
RS_LERP
)
||
sm
.
clock
==
0
||
clock
-
sm
.
clock
>
4
||
(
!
(
dastat
&
RS_FORCELERP
)
&&
(
sm
.
flags
!=
(
dastat
&
~
RS_TRANS_MASK
)
||
(
tilesiz
[
picnum
]
!=
tilesiz
[
sm
.
picnum
]
&&
(
unsigned
)(
picnum
-
sm
.
picnum
))))
||
klabs
(
a
-
sm
.
goal
.
a
)
==
1024
;
};
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment