Skip to content

Commit

Permalink
fps cap arg wasn't working for release builds?
Browse files Browse the repository at this point in the history
  • Loading branch information
NarrikSynthfox committed Mar 23, 2024
1 parent c7fae46 commit fadcb3f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Encore/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,6 @@ std::vector<bool> liftRegistered{ false,false,false,false,false };

int main(int argc, char* argv[])
{
#ifdef NDEBUG

#endif
SetConfigFlags(FLAG_MSAA_4X_HINT);
SetConfigFlags(FLAG_WINDOW_RESIZABLE);
SetConfigFlags(FLAG_VSYNC_HINT);
Expand All @@ -104,7 +101,11 @@ int main(int argc, char* argv[])

if (FPSCapStringVal != "")
{
#ifdef NDEBUG
str2int(&targetFPSArg, FPSCapStringVal.c_str());
#else
assert(str2int(&targetFPSArg, FPSCapStringVal.c_str()) == STR2INT_SUCCESS);
#endif
TraceLog(LOG_INFO, "Argument overridden target FPS: %d", targetFPSArg);
}

Expand Down Expand Up @@ -177,6 +178,7 @@ int main(int argc, char* argv[])
keybindsError = true;
}
}
prev4k = KEYBINDS_4K;
}
else {
keybindsError = true;
Expand All @@ -196,6 +198,7 @@ int main(int argc, char* argv[])
keybindsError = true;
}
}
prev5k = KEYBINDS_5K;
}
else {
keybindsError = true;
Expand Down

0 comments on commit fadcb3f

Please sign in to comment.