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

Don't allocate empty sheets #21370

Open
wants to merge 1 commit into
base: bleed
Choose a base branch
from
Open

Don't allocate empty sheets #21370

wants to merge 1 commit into from

Conversation

PunkPun
Copy link
Member

@PunkPun PunkPun commented Mar 12, 2024

Currently sheet builder allocates empty BGRA sheets for RA, TD and TS

if (Current == null)
{
Current = allocateSheet();
Current.CreateBuffer();
Copy link
Member

Choose a reason for hiding this comment

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

We can get away without the CreateBuffer call here and below, they'll be created when Util.FastCopyIntoChannel accesses the sheet data anyway.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure we can. I feel like we need a bit more unified handling of empty sprites

Copy link
Contributor

@anvilvapre anvilvapre left a comment

Choose a reason for hiding this comment

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

untested. looks straight forward enough.

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.

None yet

3 participants