Use clang-cl and toggle vsync on fullscreen key for test

Clang-CL (LLVM) gives me more FPS at the cost of a larger executable size.
Also enables O3 and FP:Fast. They need to be tested!
This commit is contained in:
GabsPuNs
2026-05-24 23:17:25 -04:00
parent bc6c09146a
commit 022773a668
2 changed files with 13 additions and 12 deletions

View File

@@ -1639,6 +1639,7 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
// Toggle fullscreen
const unsigned char fullscreen = app.GetGameSettings(primaryPad, eGameSetting_Fullscreen);
const unsigned char vsync = app.GetGameSettings(primaryPad, eGameSetting_Vsync);
if (fullscreen && !g_isFullscreen)
EnableFullscreen();
@@ -1647,7 +1648,8 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
if (g_KBMInput.IsKeyPressed(KeyboardMouseInput::KEY_FULLSCREEN))
{
app.SetGameSettings(primaryPad, eGameSetting_Fullscreen, fullscreen ? 0 : 1);
//app.SetGameSettings(primaryPad, eGameSetting_Fullscreen, fullscreen ? 0 : 1);
app.SetGameSettings(primaryPad, eGameSetting_Vsync, vsync ? 0 : 1);
}
// Open chat