mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-05-25 20:24:42 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user