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

Simplify decal system. #223

Merged
merged 1 commit into from
Nov 21, 2024
Merged

Simplify decal system. #223

merged 1 commit into from
Nov 21, 2024

Conversation

divVerent
Copy link
Contributor

@divVerent divVerent commented Nov 20, 2024

Removes the freedecal field, and as such, fixes some invariant violations found in issue #216 that appear to lead to engine crashes.

Performance should remain unchanged, as the decal expiry process performed full decal copies from end spots to unoccupied spots as part of its "shuffling" loop anyway. New decals are now always added to the end, and when a decal expires, it's now always replaced by the current last decal in the list. If only one decal were to expire per frame, this matches the previous behavior, so I am not expecting any visible differences due to decal Z index in regular gameplay from this either.

Fixes issue #216.

Removes the `freedecal` field, and as such, fixes some invariant violations
found in issue #216 that appear to lead to engine crashes.

Performance should remain unchanged, as the decal expiry process performed
full decal copies from end spots to unoccupied spots as part of its
"shuffling" loop anyway.

Fixes issue #216.
@andreymal
Copy link

It works

@divVerent divVerent merged commit 3c1941b into master Nov 21, 2024
1 of 2 checks passed
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