Optimizations
Fix rendering bug on some GPUs (hopefully)