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

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

    create pojo for every category, one runnable object contains data like fps rate, UI screen class n all requited information, you can make common information singleton, so at every time rendering start thread for updating, i recommend threadpool to keep memory consumption limited

    0 讨论(0)
提交回复
热议问题