Bug - viewcapture to file and to clipboard takes very very long

,

I’m trying to save a raytraced viewport. it takes suuuuper long. I’m only saving as the native viewport resolution. M1 Mac Pro

In all likelihood your viewport renders half the resolution, doing a ViewCaptureTo* will re-render at full resolution behind the scenes. It’ll take at least 4 times longer to complete compared to the viewport.

If 1000 samples take 2 minutes to fully render in the viewport it’ll take at least 8 minutes for the view capture.

It is probably better to just _Render instead of _ViewCaptureToFile or _ViewCaptureToClipboard.

Yes! that seems to be what is happening.

Could this be reworked so the command just captures what’s already seen on screen if the resolution in “viewcaptureto…” is set to viewport?

if I want to have a higher resolution image I would use the render command.

Well, what you see in the viewport isn’t full resolution. You’re getting 2x2 sized pixels. What actually happens is a render at half resolution happens and that gets automatically upscaled.

The viewcapture approach for raytraced has specifically been made to render at 1x1 sized pixels when requested.