0

I tried to make a spinning hand when I found bitblt takes on average 33 ms to draw the hand each time, this is just one image. When a game draws a screen full of stuff I'd assume it would take longer then the simple bitblt method drawing a small picture on the screen but I guess not.

What common/popular methods exist that I could use to create simple 2d graphics such as drawing an image from a file that take much less time to execute then bitblt?

4

1 回答 1

1

如何创建具有良好每秒帧数的简单 2d 图形?

通过 OpenGL/DirectX 使用硬件加速。如果禁用了垂直同步,您应该能够轻松地每秒获得至少 300(最多 2000)帧。

但是,图像的大小很重要。您的图像越大,绘图越慢。将大型 2D 图像传送到屏幕上可能会降低某些 GPU 上的帧速率。

另请参阅此问题

于 2013-06-30T16:51:56.590 回答