Multi threaded game - updating, rendering, and how to split them

后端 未结 7 1617
故里飘歌
故里飘歌 2021-02-10 10:54

So, I\'m working on a game engine, and I\'ve made pretty good progress. However, my engine is single-threaded, and the advantages of splitting updating and rendering into separa

7条回答
  •  太阳男子
    2021-02-10 11:07

    Also note that your draw thread should never run faster then your update thread. Since if your update thread is not done with the current step yet, you will draw the same thing as before. While doing this you might miss the finishing of the update step, which in the end causes lower than optimal framerate.

    (Remember drawing the exact same picture as before doesn't benefit anyone).

提交回复
热议问题