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

后端 未结 7 1738
故里飘歌
故里飘歌 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:21

    A decent implementation is one where you'll need little to no synchronization between the update thread and render thread. The difficulty lies in the situation where one thread runs at a different speed (which is very likely). Check out

    http://blog.slapware.eu/game-engine/programming/multithreaded-renderloop-part1/ http://blog.slapware.eu/game-engine/programming/multithreaded-renderloop-part2/ http://blog.slapware.eu/game-engine/programming/multithreaded-renderloop-part3/ http://blog.slapware.eu/game-engine/programming/multithreaded-renderloop-part4/

    how this can be achieved. The site gives an explanation and implementation (source + binaries).

提交回复
热议问题