XeFG now obeys interpolation count setting when initing

This commit is contained in:
cdozdil
2026-05-02 01:23:21 +02:00
committed by FakeMichau
parent a7e46e0eb2
commit 723002e277
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -318,4 +318,4 @@ void IFGFeature::SetResourceReady(FG_ResourceType type, int index)
_resourceFrame[type] = _frameCount;
}
UINT IFGFeature::GetInterpolatedFrameCount() { return _framesToInterpolate; }
UINT IFGFeature::GetInterpolatedFrameCount() { return _framesToInterpolate < 0 ? 1 : _framesToInterpolate; }
+1 -1
View File
@@ -73,7 +73,7 @@ class IFGFeature
UINT64 _lastDispatchedFrame = 0;
UINT64 _lastFGFrame = 0;
bool _waitingNewFrameData = false;
int _framesToInterpolate = 1;
int _framesToInterpolate = -1;
bool _isActive = false;
UINT64 _targetFrame = 0;