I always have a problem with the bge that turns into 30fps while my cpu is used has 15% (this is the logic which food performance … ) .
After research, I realized that the bge uses one core of my cpu .
According to the web, I would have to allocate my scripts on multiple cores. But I can not find a tutorial for how to do .
I found this :
def azerty ():
for xx in range ( 10000) :
print ( xx)
new_thread = threading.Thread ()
new_thread.run = azerty
The function starts when I leave the game ( in the python window) . How to make the function starts as soon as I call? And above all, is what I 'm on track or I 'm officially a noob ? thank you P