开发者

Fps Question on Threads

In a standard frames per second type game, where the devel开发者_开发问答oper can set the number of frames per second, is there one thread for drawing to the screen and movement by environmental forces such as gravity, or are there separate threads: maybe one thread for drawing to the screen, and another for moving objects based on gravitational forces. Basically I'm trying to understand FPS. How does it work?


There are many ways for it.

The modern state-of-the-art games like Killzone, Half-Life, etc. are multi-threaded and have different threads for networking, physics, rendering, where all threads have to be synchronized.
Which also could be a bottleneck, when for example all task are done but not the physics.
Then the other threads would have to wait for the

But you could also run all in a single thread run one after another task.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜