Forum rules - please read before posting.

Regression: Force Aspect Ration kills performance in HDRP.

Hi Chris,

today while profiling I discovered that there was a second camera in the scene in playmode, that cost about 20% performance! Upon further investigating I saw that the option "force aspect ratio" creates a camera, which is the reason for the performance drop. Since HDRP doesn't really support camera stacking, this has an enormous performance impact, and One Idea (at least until you possibly implement another way of forcing the aspect ratio without using a second camera) would be to implement a warning box about the effect of this under HDRP under the settings option.

Cheers,
Onat

Comments

  • As enforcing the aspect ratio limits the MainCamera's render area, a second camera is used to ensure that the whole window is renderered to, in order to prevent glitching/artefacts.

    Though, perhaps in the case of HDRP it's not necessary. Try commenting out the conents of the MainCamera script's CreateBorderCamera function. Any adverse effects with your pipeline settings?

  • Great, that seems to work and no adverse effects (at least in the editor). Thanks!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.