Hello. My project use “USceneCaptureComponent2D” with activation “every tick time capture” options on (1024x768) seven times. Recently I figure out via supported by UE frontend profling analysis, "SceneCapture Every Time"s are very heavy almost more than 70% of the reason why game is so slow. How can I do optimization SceneCapture2DComponent, any suggestions will be very thankful.
Thanks.
Yes, scene captures are another renderer and one of the biggest performance hit you can put in the game. The main way to optimize is to aggressively turn them off if the player cannot see them.
We use scene captures for HMIs, CCTVs, and picture-in-picture windows but turn them off when any of the following are true: (1) the player is out of range, (2) the player is behind the screen, or (3) the player is not looking at the screen.
Thanks a lot. I’ll try as you mentioned “(1) the player is out of range, (2) the player is behind the screen, or (3) the player is not looking at the screen.”.
You can also do things like turn off certain features from the scene capture to reduce their cost, depending on what they are doing. Sometimes shadow mapping is unnecessary, for example, along with many post processing effects. You also don’t always need to capture every frame but potentially can refresh the capture at a lower rate, like 15 times per second.
“…like 15 times per second.” sounds good approach for me. Thanks.