Cleanup. Make palette shift time-based, independent of rendering speed.