How do we obtain the screenshot faster?

Hi, all,

l am using ProcessScreenShots function (from GameViewportClient.cpp) to save the current game screenshot, but l find this process is slow. l remove the subprocess of compression from bmp to png, which speeds up the process, but l want to further improve the speed? Do you have some experiences/ideas on this?

Thanks so much!

1 Like

Do it on another thread/core, for that you need C++, there are hundreds if not thousands of libraries like that.

Even nvidia has some sdk, this will be fastest (probably coded directly for cuda cores:

Thanks for your kind reply, l am wondering if there exists some direct ways to modify the implementation of function “ProcessScreenShots” in unreal engine, to make It faster?

You probably can, but if you want update unreal to next revision, you may need to fix that stuff again and again.

So it is better to make plugin, and making plugin with ready to use SDK should be easier.

However after my first reply i am not sure if that nvidia sdk can correctly get all info from all render buffers together. But i used nvidia experience or whatever is called screen capture function and it always worked correctly.