Improving performance by flattening scenes