Skip to content

Improve generality of SpriteCache AdjustFrame.#21519

Merged
PunkPun merged 4 commits into
OpenRA:bleedfrom
pchote:sprite-cache-tweaks
Aug 5, 2024
Merged

Improve generality of SpriteCache AdjustFrame.#21519
PunkPun merged 4 commits into
OpenRA:bleedfrom
pchote:sprite-cache-tweaks

Conversation

@pchote

@pchote pchote commented Aug 3, 2024

Copy link
Copy Markdown
Member

This PR makes some tweaks to #21369 to restore support for TDHD, and makes some small cleanups to D2kSpriteSequence.

@pchote pchote added this to the Next Release milestone Aug 3, 2024

@RoosterDragon RoosterDragon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Minor suggestions.

Comment thread OpenRA.Game/Graphics/SpriteCache.cs Outdated
Comment thread OpenRA.Game/Graphics/SpriteCache.cs Outdated
@pchote
pchote force-pushed the sprite-cache-tweaks branch from de24c86 to 70a1a44 Compare August 3, 2024 20:44
@pchote

pchote commented Aug 3, 2024

Copy link
Copy Markdown
Member Author

Updated

@pchote
pchote force-pushed the sprite-cache-tweaks branch from 70a1a44 to b6c42ef Compare August 3, 2024 20:56
@PunkPun

PunkPun commented Aug 4, 2024

Copy link
Copy Markdown
Member

needs a rabase

@pchote
pchote force-pushed the sprite-cache-tweaks branch from b6c42ef to 6db1a73 Compare August 4, 2024 22:48
@pchote

pchote commented Aug 4, 2024

Copy link
Copy Markdown
Member Author

I'd prefer to cncbase, but done 😉

}

static ISpriteFrame[] GetFrames(IReadOnlyFileSystem fileSystem, string filename, ISpriteLoader[] loaders, out TypeDictionary metadata)
static ISpriteFrame[] GetFrames(IReadOnlyFileSystem fileSystem, string filename, ISpriteLoader[] loaders)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

while this probably isn't the right place to get metadata, it seems to be the only place. I recall @IceReaper having issues about metadata being disposed

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yeah, kknd has per frame metadata like 2d bone positions. Thats required to make the actors look like they should look when animating them

@PunkPun
PunkPun merged commit 50d4936 into OpenRA:bleed Aug 5, 2024
@PunkPun

PunkPun commented Aug 5, 2024

Copy link
Copy Markdown
Member

changelog

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.

5 participants