Skip to content

Conversation

FrancescoC-unity
Copy link
Contributor

This PR has two things in it:

  • Fix an error that was kicking when APV is enabled for the first time. The reason is that the cleanup seems to happen with new settings instead of old, so we try to cleanup when not init. Fix is simple enough to just check if enabled.

  • Significantly decimated the Sphere fbx (though still to a decent level). It was way too detailed to be a debug mesh for such usage. This improved the performance of the debug probe view more than 2x (still fairly slow if a lot of probes). A nightmare case I had went from 180ms per frame to 81ms

@github-actions
Copy link

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.
Link to Yamato: https://yamato.cds.internal.unity3d.com/jobs/902-Graphics
Search for your PR branch using the sidebar on the left, then add the following segment(s) to the end of the URL (you may need multiple tabs depending on how many packages you change)

HDRP
/.yamato%252Fall-hdrp.yml%2523PR_HDRP_2021.2

SRP Core
You could run ABV on your branch before merging your PR, but it will start A LOT of jobs. Please be responsible about it and run it only when you feel the PR is ready:
/.yamato%252F_abv.yml%2523all_project_ci_2021.2
Be aware that any modifications to the Core package impacts everyone in the Graphics repo so please discuss the PR with your lead.

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.

@github-actions github-actions bot added the SRP label Aug 24, 2021
@github-actions
Copy link

It appears that you made a non-draft PR!
Please convert your PR to draft (button on the right side of the page).
See the PR template for more information.
Thank you!

- Fixed lens flare not rendering correctly with TAAU or DLSS
- Fixed lens flare not rendering correctly with TAAU or DLSS.
- Fixed assert failure when enabling the probe volume system for the first time.
- Significantly improved performance of APV probe debug.
Copy link
Contributor

Choose a reason for hiding this comment

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

note for later: APV isn't an official feature (yet) so we don't need to put changelog.

}

if (IsAPVEnabled())
if (IsAPVEnabled() && ProbeReferenceVolume.instance.isInitialized)
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't we be able to test isInitialized inside the cleanup function and avoid having this public?
If we do it this way it means that any SRP needs to replicate this not too obvious pattern

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did think about that, but the problem is that if cleaning up happens anywhere else but this specific use case, then if the system is not initialized something is probably wrong.

Now, one could argue in that case we could just not cleanup, but I wondered if that "hides" potential issues.

@sebastienlagarde sebastienlagarde merged commit f4cb5c9 into master Sep 1, 2021
@sebastienlagarde sebastienlagarde deleted the HDRP/fix-error-message-and-smaller-sphere branch September 1, 2021 10:39
@@ -1,17 +1,11 @@
fileFormatVersion: 2
guid: 9e0af751bc36ea146940ba245193e28c
guid: f7f013a81640a284ea38df61c509ff9a
Copy link
Contributor

@PaulDemeulenaere PaulDemeulenaere Sep 2, 2021

Choose a reason for hiding this comment

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

This change of guid will lead to some lost references: https://github.com/Unity-Technologies/Graphics/search?q=9e0af751bc36ea146940ba245193e28c
See this conversation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yup, reverting it as we speak (cannot open the conversation tho :) )

sebastienlagarde added a commit that referenced this pull request Sep 3, 2021
…f by 2x (#5423)

* Cleanup only when initialized.

* changelog

* More decimated sphere

* Changelog

* Move init check inside

Co-authored-by: sebastienlagarde <sebastien@unity3d.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants