Skip to content

Set of simple benchmarks testing different 2D CPU rendering solutions via Rust & WASM

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE_APACHE
MIT
LICENSE_MIT
Notifications You must be signed in to change notification settings

studio-lagier/wasm-2d-rendering-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a repo of simple benchmarks across different rendering solutions. Check out the different branches to test.

To build:

  1. cargo watch -i "pkg/*" -s "wasm-pack build"
  2. In a separate terminal, from the project root: cd www && yarn && yarn start
  3. Navigate to localhost:8080 in a browser.
  4. Game of life should start.

Different branches to test:

  • tiny-skia: Using the tiny-skia drawing library to render a pixel buffer & using shared memory to access across JS and Rust.
  • homemade-pixel-renderer: Manually managing a pixel buffer in Rust, sharing with JS.
  • piet: Using the piet and piet-web libraries, which emits JS to render but is written in Rust.
  • js-renderer: Canvas-only renderer, just using Rust to manage board state.

Built using wasm-pack-template

About

Set of simple benchmarks testing different 2D CPU rendering solutions via Rust & WASM

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE_APACHE
MIT
LICENSE_MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published