rendering of a basic triangle. things are getting wierd with threading