Fixing threading graphics

Just cherry picking some older commits, should fix most of the graphic problems like invisible gui in the editor, etc
.
Still some batching needed for the speeders and info text..