Drenn: Bugfixes, optimizations so functions are completed before vblank ends