mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-04-28 20:37:58 +03:00
Fixed missing GetInterpolationFrameCount
This commit is contained in:
parent
405c1ab067
commit
0f9e4d28a9
2 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue