Dmengine crashes when physics world_count set to 1 in game.project (DEF-2110)

Maybe it’s not meant to be set to 1? I’ve set it back to 4 and it’s fine with that.

(Win10)

Your main collection along with each collection loaded by a collection proxy can be a physics world. No reason to lower it.

1 Like

As pkeod said, you need to have a high enough value to accommodate for the number of physics worlds in your game. Did you get a descriptive error message or maybe we need to improve on it?

Just tried it, and it’s not a descriptive message. I’ve added an issue DEF-2110

2 Likes

Thanks for the clarification. My code works fine with the value set to 2.

The reason I changed it is that the documentation mentions having superfluous physics worlds can eat up memory.

1 Like

Do you remember where in the docs this was written? It seems like it should be made clearer.

1 Like

@sicher sure, it’s here : http://www.defold.com/manuals/project-settings/#_physics

1 Like

Thanks, I’ll check with the engine guys is that is accurate.

1 Like