Skip to content

[Backport][2021.2][URP][2D] Fix performance regression where 2D alpha discard was broken #6224

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

Merged
merged 3 commits into from
Nov 12, 2021

Conversation

arttu-peltonen
Copy link
Contributor

@arttu-peltonen arttu-peltonen commented Nov 5, 2021

Purpose of this PR

Backport #6219.


Testing status

Not tested with the backport version, original PR performance tested manually.

…hader.

- Calling AlphaDiscard here is wrong because it requires _ALPHATEST_ON keyword to be enabled to work, and this keyword isn't used in 2D shaders.
@github-actions
Copy link

github-actions bot commented Nov 5, 2021

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://unity-ci.cds.internal.unity3d.com/project/902/
Search for your PR branch using the search bar at the top, then add the following segment(s) to the end of the URL (you may need multiple tabs depending on how many packages you change)

URP
/jobDefinition/.yamato%2Fall-urp.yml%23PR_URP_2021.2
With changes to URP packages, you should also run
/jobDefinition/.yamato%2Fall-lightmapping.yml%23PR_Lightmapping_2021.2

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.

@arttu-peltonen arttu-peltonen self-assigned this Nov 5, 2021
@arttu-peltonen arttu-peltonen marked this pull request as ready for review November 5, 2021 14:32
@arttu-peltonen arttu-peltonen requested review from a team as code owners November 5, 2021 14:32
Copy link

Choose a reason for hiding this comment

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

Nothing breaking, assuming performance improvement same as main PR.

# Conflicts:
#	com.unity.render-pipelines.universal/CHANGELOG.md
@arttu-peltonen arttu-peltonen merged commit 7af75a5 into 2021.2/staging Nov 12, 2021
@arttu-peltonen arttu-peltonen deleted the 2021.2/rpw/backport/1335648 branch November 12, 2021 12:25
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