Fixed missing GetInterpolationFrameCount

This commit is contained in:
KiritoDv 2025-04-23 14:39:54 -06:00
parent 405c1ab067
commit 0f9e4d28a9
2 changed files with 2 additions and 2 deletions

View file

@ -611,8 +611,7 @@ uint32_t GameEngine::GetInterpolationFPS() {
return CVarGetInteger("gInterpolationFPS", 60); return CVarGetInteger("gInterpolationFPS", 60);
} }
uint32_t GameEngine::GetInterpolationFrameCount() uint32_t GameEngine::GetInterpolationFrameCount() {
{
return ceil((float)GetInterpolationFPS() / (60.0f / gVIsPerFrame)); return ceil((float)GetInterpolationFPS() / (60.0f / gVIsPerFrame));
} }

View file

@ -41,6 +41,7 @@ class GameEngine {
static void RunCommands(Gfx* Commands, const std::vector<std::unordered_map<Mtx*, MtxF>>& mtx_replacements); // sol:ignore static void RunCommands(Gfx* Commands, const std::vector<std::unordered_map<Mtx*, MtxF>>& mtx_replacements); // sol:ignore
static void Destroy(); // sol:ignore static void Destroy(); // sol:ignore
static uint32_t GetInterpolationFPS(); // sol:ignore static uint32_t GetInterpolationFPS(); // sol:ignore
static uint32_t GetInterpolationFrameCount(); // sol:ignore
static void ProcessGfxCommands(Gfx* commands); // sol:ignore static void ProcessGfxCommands(Gfx* commands); // sol:ignore
static int ShowYesNoBox(const char* title, const char* box); // sol:ignore static int ShowYesNoBox(const char* title, const char* box); // sol:ignore