Shader optimizations. Resizable window