.net onpaint vertical sync

家住魔仙堡 提交于 2020-01-02 06:24:09

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!