Softgpu optimizations