17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-17 02:49:19 +02:00

Merge pull request #162 from MaSzyna-EU07/bugfix/260825-00jor

make targetfps great again
This commit is contained in:
maj00r
2026-09-03 22:18:16 +02:00
committed by GitHub
2 changed files with 7 additions and 1 deletions

View File

@@ -223,6 +223,12 @@ bool global_settings::ConfigParseGraphics(cParser& Parser, const std::string& to
return true;
}
if (token == "targetfps")
{
ParseOne(Parser, targetfps, 1, false);
return true;
}
if (token == "heightbase")
{
ParseOne(Parser, fDistanceFactor, 1, false);

View File

@@ -133,7 +133,7 @@ struct global_settings {
float ShakingMultiplierRL {1.f}; // mnożnik bujania kamera lewo/prawo
float ShakingMultiplierUD {1.f}; // mnożnik bujania kamera gora/dol
float fDistanceFactor{ 1.f }; // baza do przeliczania odległości dla LoD
float targetfps{ 0.0f };
float targetfps{ 60.0f };
bool bFullScreen{ false };
bool VSync{ false };
bool bWireFrame{ false };