High Res Screenshot ignores rendered scene.

Im having a problem that though was only on UE5.

I have my viewport positioned on the scene, hit the path tracing view and the viewport starts to render.

When its finished, I hit the High Resolution Screenshot button, the exported image is the viewport when starts rendering again, but suprise…when I go to see the exported file, it took the screenshot of the scene when is not fully rendered.

Its like the screenshot button triggers the viewport rendering to star again, so the all I see is a noised scene.

This never happened to me it started on U#5 but tried it on an old project…same thing.

Surprise, the screen

I just came across this line when i was trying to fix an issue i’m having.
Engine\Source\Runtime\Engine\Private\UnrealClient.cpp:1367

Apparently there’s a console variable called r.HighResScreenshotDelay that will do a run-up rendering. potentially fixing the noise due to path tracing rendering.
the default is 4. maybe you need. more.

apparently someone on reddit also agrees:

https://www.reddit.com/r/unrealengine/comments/oooii8/issues_with_high_resolution_screenshot/

Use r.HighResScreenshotDelay in the console and set it to long enough so that the GI has time to settle. Measured in frames, it will render the same frame that many times to allow any temporal effects to converge before the final capture happens. Found the solution here:

https://twitter.com/iBrews/status/1288868616218333187

Also works with the Screenshot Tool.

[u/SoulBarb](https://www.reddit.com/user/SoulBarb/) [u/GameArtZac](https://www.reddit.com/user/GameArtZac/) [u/FZFletch](https://www.reddit.com/user/FZFletch/)