Skip to content

Conversation

@zicklag
Copy link
Member

@zicklag zicklag commented Aug 6, 2021

Objective

  • Prevent the need to specify a sprite size when using the pipelined sprite renderer

Solution

  • Re-introduce the sprite auto resize system from the old renderer

}

/// System that resizes sprites that have their resize mode set to automatic
pub fn sprite_auto_resize_system(
Copy link
Member

Choose a reason for hiding this comment

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

I think this is fine for now (and i know this is the approach we currently use), but its worth calling out that we can probably do better than polling every texture for every sprite every frame. But I'm fine eating the perf cost (~0.9 milliseconds per frame for 67,000 sprites in bevymark_pipelined or ~3 fps).

@cart
Copy link
Member

cart commented Aug 10, 2021

bors r+

bors bot pushed a commit that referenced this pull request Aug 10, 2021
# Objective

- Prevent the need to specify a sprite size when using the pipelined sprite renderer

## Solution

- Re-introduce the sprite auto resize system from the old renderer
@bors
Copy link
Contributor

bors bot commented Aug 10, 2021

@bors bors bot changed the title Re-implement Automatic Sprite Sizing [Merged by Bors] - Re-implement Automatic Sprite Sizing Aug 10, 2021
@bors bors bot closed this Aug 10, 2021
@zicklag zicklag deleted the pipelined-sprite-auto-sizing branch August 10, 2021 02:51
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