Possibly fixed black screen of death.
Small performance fixes in graphics.