some random code tuning
add half-res rendering mode and a 4d mandelbrot fractal sample.