This seems to be a good approach to handling real-time rendering and event-based GUI at the same time: https://chadaustin.me/2010/11/how-to-wr ... plication/
TFXplorer does it not very different, but I should compare the two just in case I missed something.
Source code for responsive main loop
Re: Source code for responsive main loop
That article is over 12 years old. Has nothing changed?
Re: Source code for responsive main loop
No, Win32 has remained stable since Windows NT 😀 (With the exception of new functions being added)
Re: Source code for responsive main loop
Just realized that there's no real difference between the PC I bought in 2011, and the last one I bought in 2018. Maybe more memory, faster USB ports, and whatever difference there is between an 2nd Gen i7 and 8th Gen, but from a Win32 point of view, it doesn't matter.
Re: Source code for responsive main loop
Correct. The last breaking change with regard to gaming was probably the introduction of Direct3D 10 in 2006.
You can search the TFXplorer source code for TARGET_OS_VERSION and you will likely find that the only improvements between Windows XP and Windows 11 we care about are
You can search the TFXplorer source code for TARGET_OS_VERSION and you will likely find that the only improvements between Windows XP and Windows 11 we care about are
- the introduction of a new function to synchronize GDI drawing with the monitor refresh rate;
- Dark mode.