.net onpaint vertical sync
问题 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? 回答1: 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. 来源: https://stackoverflow.com/questions/819762/net-onpaint-vertical-sync