[Feature Request] [Rendering] Update individual sides of a Scene Capture Cube (within Blueprint)
As far as I've been able to search the documentation/AnswerHub/internet, there's no way to update individual sides of a Scene Capture Component Cube within Blueprint. Realtime cubemaps are an expensive feature, and the ability to update individual sides of the cube would be a boon to performance.
Description of Problem
I have a forward-rendered driving game where razor-sharp realtime cubemaps are an essential element of the visuals. The actual problem with Scene Capture Cubes is they are expensive due to them consisting of six individual captures that are all updated within a single frame no matter what.
(ProfileGPU screenshot -- "Ultra" reflection preset for dramatic effect.)
The problem can be partially mitigated by reducing various reflection quality/resolution parameters, but there is a natural overhead to setting up six different perspectives regardless of what's being rendered. ("ResolveSceneDepthTexture" takes a fixed amount of frametime for each side of the cube.) But even without the overhead, updating every side in one go is not ideal.
The average framerate can be improved by updating the cubemap every other (or every Nth) frame, but this results in uneven frametimes at the micro level. It would be better if it were possible to separate individual sides of the 6-sided capture and spread them out across multiple frames. It would also help for captures that are updated sparsely or even just once by preventing a performance spike that would otherwise happen.
I've seen driving games that use cubemap reflections update their cubemaps on a per-side basis. For example, in Forza Horizon 4, the forward-facing side of the cubemap is updated at a more rapid clip than the other sides, which seem to update in an alternating pattern. I would like to have this level of control over the Scene Capture Component Cube in Unreal Engine 4's Blueprint scripting language.
I'm going to anticipate a couple responses:
Thanks for listening. All things considered, I'm loving this game engine.
asked Nov 02 '18 at 10:45 PM in Everything Else
Follow this question
Once you sign in you will be able to subscribe for any updates here