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

Explicitly document BackToFront and FrontToBack use an unstable sort. #7323

Merged
merged 1 commit into from
Aug 20, 2020
Merged

Explicitly document BackToFront and FrontToBack use an unstable sort. #7323

merged 1 commit into from
Aug 20, 2020

Conversation

goosenoises
Copy link

#3856

If two sprites have the same depth, their draw order isn't guaranteed to be preserved when sorting with SpriteSortMode.BackToFront or SpriteSortMode.FrontToBack. Using a stable sort is expensive, but as @Jjagg mentioned, wanted to document this for easier reference.

(Side note that I'm relatively new to contributing to OSS, please let me know if I'm missing anything.)

@Jjagg
Copy link
Contributor

Jjagg commented Aug 20, 2020

Thank you! :)

@Jjagg Jjagg merged commit d36aa52 into MonoGame:develop Aug 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants