Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Create a cache for the 'shadow trail' animation effects#1226

Merged
Vagabond merged 2 commits into
masterfrom
adt/trail-cache
Apr 21, 2025
Merged

Create a cache for the 'shadow trail' animation effects#1226
Vagabond merged 2 commits into
masterfrom
adt/trail-cache

Conversation

@Vagabond
Copy link
Copy Markdown
Member

Currently we are creating a new animation and sprite for every single frame that needs a trail effect. Netcode rollbacks can cause this to overflow the atlas. This patch changes things so that each potential sprite that needs the trail effect only creates one animation, that is cached and reused (along with the associated sprite).

Currently we are creating a new animation and sprite for every single
frame that needs a trail effect. Netcode rollbacks can cause this to
overflow the atlas. This patch changes things so that each potential
sprite that needs the trail effect only creates one animation, that is
cached and reused (along with the associated sprite).
@Vagabond Vagabond requested a review from katajakasa April 20, 2025 22:34
Copy link
Copy Markdown
Contributor

@LegendaryBlueShirt LegendaryBlueShirt left a comment

Choose a reason for hiding this comment

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

Works under stress test conditions offline.

@Vagabond Vagabond merged commit f4a26bb into master Apr 21, 2025
8 checks passed
@Vagabond Vagabond deleted the adt/trail-cache branch April 21, 2025 12:30
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