CnCNet / ts-ddraw

Rewrite of cnc-ddraw with Tiberian Sun as the target
401 stars 44 forks source link

TS-DDRAW switch to GDI renderer when Windows XP compatibility mode on #16

Open everything411 opened 4 years ago

everything411 commented 4 years ago

when ts-ddraw switch to gdi, it might be the game is running in windows XP compatibility mode on windows 7/10 instead of running on an old computer. The gdi renderer's fps is limited to 30, although the computer is fast enough for 60fps in GDI mode. So if it is possible to distinguish these two situations and set different FPS, or just add some warning texts saying that the user should disable the compatibility mode for better performance? https://github.com/CnCNet/ts-ddraw/blob/5c1394b699fd9b6e37ab84b993cab147044b41a9/src/render.c#L452 https://github.com/CnCNet/ts-ddraw/blob/5c1394b699fd9b6e37ab84b993cab147044b41a9/src/render.c#L464