appsinacup/godot-rapier-physics

Use a data holder and send it through layers

Ughuuu opened this issue · 0 comments

In the new versions rust rewrite, I use now a singleton locked with a mutex to access data.
Instead, I should give a reference to the data holder to all layers, and possiblity use a hashmap that can handle access from multiple threads(dashmap)