mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-13 07:57:58 +00:00
- added temp hack for perf issue with Metal layer in fullscreen
This commit is contained in:
parent
97fc3aa9a6
commit
be9a43f177
1 changed files with 10 additions and 0 deletions
|
@ -391,6 +391,16 @@ public:
|
|||
fb->SetMode(fullscreen, vid_hidpi);
|
||||
fb->SetSize(fb->GetClientWidth(), fb->GetClientHeight());
|
||||
|
||||
// This lame hack is a temporary workaround for strange performance issues
|
||||
// with fullscreen window and Core Animation's Metal layer
|
||||
// It is somehow related to initial window level and flags
|
||||
// Toggling fullscreen -> window -> fullscreen mysteriously solves the problem
|
||||
if (ms_isVulkanEnabled && fullscreen)
|
||||
{
|
||||
fb->SetMode(false, vid_hidpi);
|
||||
fb->SetMode(true, vid_hidpi);
|
||||
}
|
||||
|
||||
return fb;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue