mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-07-14 00:53:07 -07:00
Fix: Use correct fps value for frame interpolation with match refresh rate (#2694)
This commit is contained in:
parent
059df8187e
commit
ac506c8b3e
2 changed files with 3 additions and 2 deletions
|
@ -1854,7 +1854,7 @@ extern "C" void Overlay_DisplayText(float duration, const char* text) {
|
|||
}
|
||||
|
||||
extern "C" void Overlay_DisplayText_Seconds(int seconds, const char* text) {
|
||||
float duration = seconds * CVarGetInteger("gInterpolationFPS", 20) * 0.05;
|
||||
float duration = seconds * OTRGlobals::Instance->GetInterpolationFPS() * 0.05;
|
||||
SohImGui::GetGameOverlay()->TextDrawNotification(duration, true, text);
|
||||
}
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#include <math.h>
|
||||
|
||||
#include "frame_interpolation.h"
|
||||
#include "soh/OTRGlobals.h"
|
||||
|
||||
/*
|
||||
Frame interpolation.
|
||||
|
@ -451,7 +452,7 @@ void FrameInterpolation_StartRecord(void) {
|
|||
current_recording = {};
|
||||
current_path.clear();
|
||||
current_path.push_back(¤t_recording.root_path);
|
||||
if (CVarGetInteger("gInterpolationFPS", 20) != 20) {
|
||||
if (OTRGlobals::Instance->GetInterpolationFPS() != 20) {
|
||||
is_recording = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue