Branch: refs/heads/master Home: https://github.com/Warzone2100/warzone2100 Commit: 0a1eeee62790e44e6127812b0f098bb021132394 https://github.com/Warzone2100/warzone2100/commit/0a1eeee62790e44e6127812b0f098bb021132394 Author: past-due <30942300+past-...@users.noreply.github.com> Date: 2020-07-08 (Wed, 08 Jul 2020)
Changed paths: M lib/sdl/CMakeLists.txt M lib/sdl/main_sdl.cpp R lib/sdl/swapinterval.mm Log Message: ----------- macOS: Switch to using SDL_GL_SetSwapInterval directly Commit: 17fb3cc2db07cd063886ef6d180a5b8be65e7654 https://github.com/Warzone2100/warzone2100/commit/17fb3cc2db07cd063886ef6d180a5b8be65e7654 Author: past-due <30942300+past-...@users.noreply.github.com> Date: 2020-07-08 (Wed, 08 Jul 2020) Changed paths: M lib/sdl/main_sdl.cpp Log Message: ----------- Add workaround for vsync failures on macOS If the OpenGL window on macOS is minimized (or occluded), SwapWindow may not wait for the vertical blanking interval (and, thus, CPU usage skyrockets). Add a rather hacky workaround to detect this and sleep for a bit. Compare: https://github.com/Warzone2100/warzone2100/compare/4a8f98d4b5f9...17fb3cc2db07 _______________________________________________ Warzone2100-commits mailing list Warzone2100-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/warzone2100-commits