I'm trying to implement some animation using winforms and gdi+, but I get a lot of tearing moving sprites inside a control.
Is there a way in managed .net to have the overriden Control.OnPaint method wait for the vertical retrace of the monitor?
I'm trying to implement some animation using winforms and gdi+, but I get a lot of tearing moving sprites inside a control.
Is there a way in managed .net to have the overriden Control.OnPaint method wait for the vertical retrace of the monitor?
Are you already using double buffering? If not I would suspect that would remove the tearing, and it is simpler than trying to wait for the vertical retrace.