Performance improvements (dedicated drawing thread).