spright

Crates.iospright
lib.rsspright
version
sourcesrc
created_at2024-10-10 15:54:30.928806
updated_at2024-12-01 19:08:42.846752
descriptionSimple sprite renderer for wgpu
homepage
repositoryhttps://github.com/teenygame/spright
max_upload_size
id1403951
Cargo.toml error:TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
(coevolutions)

documentation

README

spright

spright is a high performance sprite renderer for wgpu.

It does exactly one thing, and that's draw a lot of sprites to the screen as fast as it can.

Performance notes

Minimize the total number of textures

The fewer textures you use, the better. Every time a different texture is used, a different bind group needs to be used and a separate draw call issued.

Minimize texture switching

Even if you have multiple textures, if they're being drawn together it can still be relatively efficient. However, if e.g. sprites are alternating between textures, then a separate draw call will need to be issued for each texture used. In the worst case, the number of draw calls could be the number of sprites you want to draw!

Commit count: 42

cargo fmt