Source code for responsive main loop

Eggheads talking about bytes and stuff.
Post Reply
User avatar
Krishty
Site Admin
Posts: 1271
Joined: 2022-Jan-09, 00:59

Source code for responsive main loop

Post 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.
mikew
Data Genius
Posts: 558
Joined: 2022-Jan-09, 20:21

Re: Source code for responsive main loop

Post by mikew »

That article is over 12 years old. Has nothing changed?
User avatar
Krishty
Site Admin
Posts: 1271
Joined: 2022-Jan-09, 00:59

Re: Source code for responsive main loop

Post by Krishty »

No, Win32 has remained stable since Windows NT 😀 (With the exception of new functions being added)
mikew
Data Genius
Posts: 558
Joined: 2022-Jan-09, 20:21

Re: Source code for responsive main loop

Post 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.
User avatar
Krishty
Site Admin
Posts: 1271
Joined: 2022-Jan-09, 00:59

Re: Source code for responsive main loop

Post 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
  1. the introduction of a new function to synchronize GDI drawing with the monitor refresh rate;
  2. Dark mode.
Post Reply