path tracing optimization begining