Repaint() terrible performance why?

It might be worth trying this. My plugins are OpenGL but there may be a similar issue with non-OpenGL relating to DWM: