Skip to content
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

[HDRP][Compositor] Update the compositor output when not in play mode #1653

Merged
merged 2 commits into from Sep 8, 2020

Conversation

pmavridis
Copy link
Contributor

@pmavridis pmavridis commented Aug 20, 2020

Purpose of this PR

https://fogbugz.unity3d.com/f/cases/1266216/

The problem in the bug ticket is caused because SSR look black on the first rendered frame, because we don't have a valid color pyramid history. This behavior is also true outside of the compositor (can repro in scene view by toggling SSR with "always refresh" set to off).

The first rendered frame might have other issues too: for example TAA will not have converged yet and any effects that require denoising/accumulation will probably not look ok and exposure might not be 100% accurate.

From the compositor side, the real problem was that the preview/output was restricted to the first rendered frame, unless the user was in play mode (or unless the game view was side-by-side with scene view and "always refresh" was enabled). This PR makes sure that the compositor output gets regular updates and is not stuck in the first frame.


Testing status

  • The problem in the project attached to the ticket does not repro anymore. The first frame of SSR is still black, but at least now we get the proper output soon after the first frame.
  • Also tested by having the game view side-by-side with the scene view. In all cases

@pmavridis pmavridis added the HDRP label Aug 20, 2020
@pmavridis pmavridis requested review from sebastienlagarde and a team August 20, 2020 12:49
Copy link
Contributor

@remi-chapelain remi-chapelain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue seems to be fixed. ✔️
The only concern I had was performance since now the game view and thumbnails are refreshed @4fps but according to @pmavridis, no major difference has been detected ✔️

@pmavridis pmavridis marked this pull request as ready for review August 21, 2020 08:28
@sebastienlagarde sebastienlagarde merged commit a3d14c4 into HDRP/staging Sep 8, 2020
@sebastienlagarde sebastienlagarde deleted the HDRP/case_1266216 branch September 8, 2020 22:53
@sebastienlagarde sebastienlagarde mentioned this pull request Sep 17, 2020
6 tasks
sebastienlagarde added a commit that referenced this pull request Sep 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants