This project is read-only.

Using Nine Engine with Threading

Jun 10, 2013 at 3:22 PM
I'm having some issues using Nine engine when it comes to threading the application. I have a class that inherits from Primitive, and builds the primitive in the OnBuild() method. My goal is to only build these primitives in a thread, so I declare a new class from within a thread, and call BoundingBox to trigger a rebuild. The problem seems to be that sometimes rebuilds trigger when I'm not expecting it, not sure how to mitigate this. Any advice on how to best implement this type of scenario?
Jun 24, 2013 at 6:49 PM
I figured this out, my issue was completely on my end, I was not removing objects from the scene when I thought I was, and then I would reuse the object, and attempt to rebuild it (in a thread) while it was still in the scene.