Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Eh, with Arc you can share ownership easily, and there are probably a lot of cleverer concurrent data structures or entity component kinda things that'd just work too. But maybe you can arrange things so that one thread owns the scene but the other thread can still do useful work?


This typically isn't possible because the rendering context is global and is needed for both loading and rendering. You need an Arc to guarantee the correct Drop mechanism.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: