Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对不起一个愚蠢的问题。我们将每个绘图对象都放在 Draw 方法中,是否每次都绘制所有对象,甚至其中一些对象没有更改?它是否需要某种后台缓冲区并立即绘制以减少闪烁?或者至少添加 if-else reduce 绘制未更改的对象?
每帧都会调用 Draw,是的,即使没有移动对象或类似的对象,它也会重新绘制整个屏幕。