mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Remove superfluous vsyncEnabled attribute
This commit is contained in:
@@ -18,9 +18,8 @@ FramerateManager::FramerateManager(int targetFrameRate)
|
|||||||
: lastFrameIndex(0)
|
: lastFrameIndex(0)
|
||||||
, lastFrameTimes({})
|
, lastFrameTimes({})
|
||||||
, lastTimePoint(Clock::now())
|
, lastTimePoint(Clock::now())
|
||||||
, vsyncEnabled(settings["video"]["vsync"].Bool())
|
|
||||||
{
|
{
|
||||||
if(vsyncEnabled)
|
if(settings["video"]["vsync"].Bool())
|
||||||
{
|
{
|
||||||
static int display_in_use = settings["video"]["displayIndex"].Integer();
|
static int display_in_use = settings["video"]["displayIndex"].Integer();
|
||||||
SDL_DisplayMode mode;
|
SDL_DisplayMode mode;
|
||||||
|
@@ -25,8 +25,6 @@ class FramerateManager
|
|||||||
/// index of last measured frome in lastFrameTimes array
|
/// index of last measured frome in lastFrameTimes array
|
||||||
ui32 lastFrameIndex;
|
ui32 lastFrameIndex;
|
||||||
|
|
||||||
bool vsyncEnabled;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
FramerateManager(int targetFramerate);
|
FramerateManager(int targetFramerate);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user