skip distance checks if we dont use interpolation
will also indirectly skip calling R_GetTimeFrac
This commit is contained in:
1 parent
4918a5388f
commit
81cf16aa57
2 files changed
+3
-1
No files matched your search
@@ -140,7 +140,6 @@ static tic_t last_view_update;
|
||||
static int oldview_invalid[MAXSPLITSCREENPLAYERS] = {0, 0, 0, 0};
|
||||
viewvars_t *newview = &pview_new[0];
|
||||
|
||||
|
||||
enum viewcontext_e viewcontext = VIEWCONTEXT_PLAYER1;
|
||||
|
||||
static levelinterpolator_t **levelinterpolators;
|
||||
|
||||
@@ -2967,6 +2967,9 @@ boolean R_CheckInterpDist(mobj_t *thing)
|
||||
if (!cv_maxinterpdist.value)
|
||||
return true;
|
||||
|
||||
if (!R_UsingFrameInterpolation())
|
||||
return false;
|
||||
|
||||
const INT32 dist = R_QuickCamDist(thing->x, thing->y);
|
||||
|
||||
return (dist < cv_maxinterpdist.value);
|
||||
|
||||
Reference in new issue
Block a user