internal/ui: bug fix: FPS drop on fullscreen on macOS 13

Updates #1745
Closes #2495
This commit is contained in:
Hajime Hoshi 2022-12-16 02:59:04 +09:00
parent 1fc08d3d61
commit b625cc84ce

View File

@ -169,15 +169,6 @@ package ui
// return; // return;
// } // }
// //
// // Apparently, adjusting the view size is not needed as of macOS 12 (#1745).
// static int majorVersion = 0;
// if (majorVersion == 0) {
// majorVersion = [[NSProcessInfo processInfo] operatingSystemVersion].majorVersion;
// }
// if (majorVersion >= 12) {
// return;
// }
//
// // Reduce the view height (#1745). // // Reduce the view height (#1745).
// // https://stackoverflow.com/questions/27758027/sprite-kit-serious-fps-issue-in-full-screen-mode-on-os-x // // https://stackoverflow.com/questions/27758027/sprite-kit-serious-fps-issue-in-full-screen-mode-on-os-x
// CGSize windowSize = [window frame].size; // CGSize windowSize = [window frame].size;