为什么 DrawReversibleFrame 这么慢?
为什么 ControlPaint.DrawReversibleFrame 这么慢?我用它在程序中正在调整大小或拖动的对象周围绘制虚线框。您可以看到,当鼠标移动时,重绘有相当大的滞后。在 MouseMove 事件中,我使用 DrawReversibleFrame 来绘制框架,所以这可能是我的问题,因为它重绘太多。有趣的是,在远程桌面下使用我的程序时,没有任何问题,并且重绘速度相当快,并且没有延迟。
Why is ControlPaint.DrawReversibleFrame so slow? I use it to draw a dashed frame around objects that are being resized or dragged around in my program. You can see that the redrawing lags quite a bit as the mouse is moved around. In the MouseMove event, I use DrawReversibleFrame to draw the frame, so maybe that's my problem because it's redrawing too much. The funny thing is that while using my program under remote desktop, there is no problem and it redraws quite a bit faster and there is no lag.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我刚刚注意到,这只在使用 Aero 时才会发生。当我使用任何其他不使用 Aero 的桌面主题时,它工作得非常好。
I have just noticed that this only occurrs when Aero is used. It works perfectly fine when I use any other desktop theme that is not using Aero.