Thanks for the swift response! Adding BLOCKING before the function declaration like so:
BLOCKING void generateSphere()
{
...;
}
Did indeed release the GIL. I wonder though if calling an asyncTask from c++ would be faster than calling it in python, i.e. if a c++ module initiates an asyncTask, would that be genuine threading as opposed to the ping-ponging done by the GIL in a python asyncTask?
EDIT:
I got the answer here: Panda3d Threading and Python Global Interpreter Lock
It’d be better to use a c++ asyncTask as it avoids the python GIL and its limitations altogether.