[Migrated] Ported shadertoy shader runs very slow (fractal pyramid)
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 3.4k
- Forks
- 125
- PR merge metrics
- No merged PRs in 30d
Description
Issue automatically imported from old repo: https://github.com/EmbarkStudios/rust-gpu/issues/1106
Old labels: t: bug
Originally creatd by LegNeato on 2023-12-06T03:16:14Z
I ported the shadertoy shader from https://www.shadertoy.com/view/tsXBzS to rust-gpu (code at https://github.com/LegNeato/rust-gpu/tree/fractal). When I run it, shadertoy on the web is way faster than rustgpu + wgpu locally, even with a small window.
This is the command I am running:
cargo run --release --bin wgpu_runner -- -s FractalPyramid
I'm on a MacBook Pro with an M1 Pro on macOS 13.5.2.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the ported shader in the linked fractal branch and run cargo run --release --bin wgpu_runner -- -s FractalPyramid on the reported setup. Compare its performance with the linked Shadertoy version and investigate the source of the slowdown; done means the cause is identified and a measurable improvement or clear diagnosis is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers, computer-graphics, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100