sezero / quakespasm

QuakeSpasm -- A modern, cross-platform Quake game engine based on FitzQuake.
https://sourceforge.net/projects/quakespasm/
GNU General Public License v2.0
241 stars 96 forks source link

call modeset only when needed #24

Closed j4reporting closed 2 years ago

j4reporting commented 2 years ago

it seems that quakespasm and ironwail are issuing a modeset even when it's not needed. A modeset occurs if game resolution and framerate matches the desktop settings. vkQuake seem to issue a modeset only if resolution or framerate differ from desktop settings.

with vid_fullscreen 0 a modeset is called as well if game resolution matched the desktop resolution. With 'Intel Display Audio' devices this leads to uninitialized/lost audio.

sezero commented 2 years ago

dup of #23