This is my first time working with parallel lua (or any parallel systems for that matter) however I’m having an issue with debug.profile. I know this is because of parallel because if I synchronise then it gets fixed.
Output:
Code:
debug.profilebegin("ClientLoader")
-- Clone state tables before doing any parallel
local PlayerState = self.PlayerState:clone()
local GameState = self.GameState:clone()
debug.profilebegin("physicsStep")
print("hello world")
debug.profileend()
task.synchronize() -- Allow for the updating of states
debug.profileend()