Re:Hot-code reloading on macOS/arm64 with Zig
by torginus on Friday March 18, 2022 @05:58AM
(#30720269)
Well, games have a leg up on the competition in this regard - games tend to have some update logic which is called 60 times per second.
If you can restrict the code that runs between frames, you can just replace the logic everywhere between the frames, and not have to worry about what code the threads are executing at this time - since game logic is not running.
If you can restrict the code that runs between frames, you can just replace the logic everywhere between the frames, and not have to worry about what code the threads are executing at this time - since game logic is not running.