I've a Win32 application that acts as Scada between two devices. My problem is that when is minimized to taskbar (windows11) program slow downs a lot. I've found this problem because my code start to catch timeouts that never happened with application window in front. Also, with serial prints active, when I resume the windows from taskbar I see that print frequency is slowed down a lot and after some moments it back to correct frequency.
Is there a way to avoid this in Win32? Priority of the task may influence?