Original Post
I'm working on a game/engine and want to use stackless python for scripting as I use python at work.
But what parts of the game is normal to script? Gui states? AI (what parts)? File loading?
I'm thinking about using it for file loading would that be to slow? I guess for pre loading the level its fine, but what If I use it for live streaming of resources? I've been thinking of designing it so the python script loading the file could be fired of in a new thread and the game would only render it when its done loading it.
With the threading. Should I run it as a seperate thread from c++ or should I have message system where I fire off jobs to a python "engine" and then collect the results from it?
Some general advice on how to organize scripting in my game/engine would be good.
But what parts of the game is normal to script? Gui states? AI (what parts)? File loading?
I'm thinking about using it for file loading would that be to slow? I guess for pre loading the level its fine, but what If I use it for live streaming of resources? I've been thinking of designing it so the python script loading the file could be fired of in a new thread and the game would only render it when its done loading it.
With the threading. Should I run it as a seperate thread from c++ or should I have message system where I fire off jobs to a python "engine" and then collect the results from it?
Some general advice on how to organize scripting in my game/engine would be good.