-
Notifications
You must be signed in to change notification settings - Fork 860
[Fogbugz # 1398085] Fixing flicker when toggling hardware DRS #6868
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Hi! This comment will help you figure out which jobs to run before merging your PR. The suggestions are dynamic based on what files you have changed. HDRP Depending on the scope of your PR, you may need to run more jobs than what has been suggested. Please speak to your lead or a Graphics SDET (#devs-graphics-automation) if you are unsure. |
|
It appears that you made a non-draft PR! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed for dx11 / dx12 ✔️
Found only one case where it's still an issue.
- Vulkan renderer
- Only in hardware mode (works fine in software)
- In editor AND player
- happens only when a DRS filter is active when setting AllowDynamicResolution to false on the camera (works fine if DLSS is active)
DLSS.2022-01-27.12-29-57.mp4
0a817e8a00fe163dc45d291e4d505088.mp4
Ok will investigate this. There is a chance this is a vulkan backend issue, but will definitely check this. |
@remi-chapelain I tried this, I cannot reproduce this locally. Are you %100 sure you have the right branch? I tried with a vulkan renderer, hardware mode, dlss off. Works just fine on my side. |
remi-chapelain
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for wasting time here, it seems kleber is right because I can't repro anymore !
Approving the PR ✔️
* [Fogbugz # 1398085] Fixing flicker when toggling hardware DRS #6868 * [Fogbugz # 1381103] Fixing hardware DRS performance when active with multiple views #6862 * [Fogbugz#1388961] Fixing PBR Dof for DLSS #6651 * Do not use the dynResHandler while initializing the state. Ensuring we use the asset directly until we build up the drs state (#6966) * [Docs] [HDRP] Update scripts in the accumulation API documentation (#6951) * Update scripts in the accumulation API documentation * Min frame rate should not be zero * Update Ray-Tracing-Path-Tracing.md * reformatted list (#6963) * reformatted list * Update UI-Best-Practices.md * Update UI-Best-Practices.md * Update UI-Best-Practices.md * Fixing formatting #6967 * Fixed RTGI potentially reading from outside the half res pixels due to missing last pixel during the upscale pass (case 1400310). #6985 * add visual scripting to package list (#7018) * Apply formatting changes Co-authored-by: Kleber Garcia <[email protected]> Co-authored-by: Pavlos Mavridis <[email protected]> Co-authored-by: emilybrown1 <[email protected]> Co-authored-by: anisunity <[email protected]> Co-authored-by: [email protected] <[email protected]>
Purpose of this PR
Fogbugzes:
This PR fixes a flicker when enabling/disabling DRS on a camera. This issue only occurs on hardware DRS platforms (dx12, vulkan and console).
Reason:
We were calling UpdateAndUseCamera, which triggered an update. Then after we were calling SetCurrentCameraRequest(). This artifically delayed the ScalableBufferManager sending the new resolution to the runtime.
The fix is quite simple, do all the configuration first, then do a final Update() to flush the settings gathered.
Testing status