Browse Source

Limit tested video modes even further and skip all display frequencies above 60 Hz, to significantly lower startup times

console
Nico de Poel 5 years ago
parent
commit
b1a7505d81
  1. 3
      engine/code/gl_vidnt.c

3
engine/code/gl_vidnt.c

@ -1642,11 +1642,12 @@ void VID_InitFullDIB (HINSTANCE hInstance)
(nummodes < MAX_MODE_LIST))*/
if ((devmode.dmBitsPerPel >= 32) &&
(
(devmode.dmPelsWidth == VID_MINWIDTH && devmode.dmPelsHeight == VID_MINHEIGHT) || (devmode.dmPelsWidth >= 640 && devmode.dmPelsHeight >= 480)
(devmode.dmPelsWidth == VID_MINWIDTH && devmode.dmPelsHeight == VID_MINHEIGHT) || (devmode.dmPelsWidth >= 1024 && devmode.dmPelsHeight >= 768)
) &&
(devmode.dmPelsWidth != 720) &&
(devmode.dmPelsWidth <= VID_MAXWIDTH) &&
(devmode.dmPelsHeight <= VID_MAXHEIGHT) &&
(devmode.dmDisplayFrequency <= 60) &&
(nummodes < MAX_MODE_LIST))
// jkrige - limit video modes
{

Loading…
Cancel
Save