Which works. I tested returning a dummy ID value to see if the object has been intialized and set and its what I expect.
But the GPU/CUDA memory seems to crash when I run something on it
Any reason why that would have gotten corrupted?
(The init works fine if in the cmd itself, but wastes 2 secs everytime its run. I am trying to set the GPU initialization in the onload plugin to avoid having to setup the GPU buffers and CUDA everytime)
I’m confused. Rhino uses OpenGL (already) and as a plug-in developer you can play in its pipeline by implementing a conduit. What are you trying to do that you cannot do in a Rhino conduit?
If the init function works in your command, why not just keep a bool around to set that you’ve called init once? I’m having a hard time understanding exactly what it is that you are trying to do.