I need to repeatedly redraw a window showing some form of continous analysis. Now:
1) If I do that in WM_PAINT after the painting, I basically kill everyone else's painting, so it's not usable.
2) If I do that in a timer, it is kind of lagging.
So what is the best way to do that so the window is frequently repainted, but when the OS is busy processing some data or by painting other applications, it lowers the rate. I always thought the OS should take care of distributing the CPU power between the processes leaving the graphics secondary to ensure actual processing has enough time, but it doesn't look so on Windows nor on Mac.