void loop() { // code } void loadLevel() { import core.memory : GC; GC.disable(); while(stuff) loop(); GC.collect(); }Also see EMSI containers for no gc containers with deterministic destruction https://github.com/economicmodeling/containers
Thanks for mentioning the containers, that's exactly what I needed !
Then I think it's worth trying...This week end I'll try to generate the D wrapper for Urho3D and test how to load some scene resources in the background.