News for hackers. Stuff that matters.
Re:Game performance optimization – A practical example from ... by dfghdfhs on Monday January 31, 2022 @09:55AM (#30148528)
Are the logic and the rendering loop in separate threads?

If so, how do you ensure that when the rendering loop reads the shared state, it sees something consistent (i.e. something that hasn't been updated by the logic loop in between the time when the rendering loop started accessing it, and the time when the rendering loop finished accessing it)?

Re:Game performance optimization – A practical example from ... by insraq on Tuesday February 01, 2022 @03:30AM (#30159960)
No. Multithread JavaScript (WebWorker) is a bit hard to work with. So currently they are all running in the main thread, just "at separate cadences"