Hey there gang,
Little experiment, I tried running the main game loop on a separate thread to see how that works as opposed to just calling it every frame from a controller on an empty or what have you. All my logic for listening to inputs and game events work fine, but this bit refuses to cooperate:
from bge.render import (getWindowWidth, getWindowHeight, setMousePosition) def resetMousePos(): setMousePosition(int(getWindowWidth()/2), int(getWindowHeight()/2))
Now I’m not convinced that threading in this case is good on performance – either that or I’m doing it wrong – but just out of curiosity I’d still like to know what’s going on. Anyone knows something about this?