Page 1 of 1
Source code for responsive main loop
Posted: 2023-Feb-25, 21:34
by Krishty
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.
Re: Source code for responsive main loop
Posted: 2023-Feb-26, 16:17
by mikew
That article is over 12 years old. Has nothing changed?
Re: Source code for responsive main loop
Posted: 2023-Feb-26, 16:21
by Krishty
No, Win32 has remained stable since Windows NT 😀 (With the exception of new functions being added)
Re: Source code for responsive main loop
Posted: 2023-Feb-26, 19:01
by mikew
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
Posted: 2023-Feb-26, 20:23
by Krishty
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
- the introduction of a new function to synchronize GDI drawing with the monitor refresh rate;
- Dark mode.