The render scale option on URP is very useful but I can’t something similar in HDRP.
Am I missing something or is this just not possible in the current version of HDRP ?
Hello,
There is no exact equivalent to that, but you can use the “Forced Screen Percentage” option in the HDRP asset to lower the resolution of the main texture (it doesn’t accept percentages above 100)
In scripts you can change the value like this:
var dynamicResSettings = renderPipelineAsset.currentPlatformRenderPipelineSettings.dynamicResolutionSettings;
dynamicResSettings.forceResolution = true;
dynamicResSettings.forcedPercentage = x;
You can get the render pipeline asset either from the QualitySettings API or the GraphicsSettings depending on the use case.
If you’re looking to increase the render scale, I believe the easiest in HDRP would be to assign a bigger render texture in the output of the camera. You can also look into MSAA options since it can solve similar problems.
Doesn’t Work on me. I tried to cache it from Graphic Setting and with Serializefield but nothing works.
@MTegarAsta : I tried this today and I too saw no effect at first.
Then I thought RTFM. So there it was:
“…To use dynamic resolution in your Project, you must enable dynamic resolution in your HDRP Asset and then enable it for each Camera you want to use it with…”.
Just wanted to leave this here for future me ('cause I will surely miss it again).
still not working, I have done this before, because if I change it manually it will work, but not via script (in runtime the variable for forcePercentage still in 100).
Hmmm actually I found another solution for this by using DynamicResolutionHandler from UnityEngine.Rendering
res Variable is for the scale percentage
then turn off the force Resolution to off and set the minimum and maximum for the percentage scale (in my case between 50% and 100%)
“the easiest in HDRP would be to assign a bigger render texture in the output of the camera” - Please tell me how to do this.