Skip to main content
grammar correction backround / background
Link

How to run scripts in the backroundbackground of the game engine without freezing or opening new Blender instances on Windows?

Notice removed Draw attention by CommunityBot
Bounty Ended with Mike Pan's answer chosen by CommunityBot
Notice added Draw attention by Rakholl
Bounty Started worth 50 reputation by Rakholl
Tweeted twitter.com/#!/StackBlender/status/368932213347217408
Source Link
Rakholl
  • 325
  • 2
  • 10

How to run scripts in the backround of the game engine without freezing or opening new Blender instances on Windows?

The Blender game engine does not move into the next frame if all the active scripts have not yet finished.

Say we have an HTTP script in the game. The script retrieves data from a server. I presume the retrieval process cannot be split into multiple small processes.

I know only of the subprocess module's ability to work outside the bge, but on Windows a new Blender window pops up every time the subprocess module is used to start any new Python script.