I’m doing simple scene loading in fixed update. I noticed I have random crashed with that.
When I move my loading scene code to Update event then the issue is not present.
File loadFile(fileSystem.programDir + "Data/Scenes/CharacterDemo", FILE_READ);
scene_.Load(loadFile);
script.defaultScene=scene_;
characterNode = scene_.GetChild("Player", true);
if (characterNode is null)
return;
HandleCameraToPlayer();
Is there something obvious that load scene could cause troubles in FixedUpdate aka PhysicsPreStep?
Or should I find some access violations in my code? (Note I’m using AngelScript and it’s not writing null usage in the console, just crash and generated dump)