playcanvas / playcanvas/engine
Shader precision optimizations
Open
Nobody has claimed this yet.
area: graphics
performance
- Dominant language
- JavaScript
- Stars
- 16.8k
- Forks
- 2k
- Avg merge
- 4h 32m
- Merged PRs (30d)
- 222
Description
Optimize shaders in the engine to use half precision when full float is not required, to optimize fragment shader performance.
There's an unfinished PR related to this: https://github.com/playcanvas/engine/pull/2972
original ticket: https://github.com/playcanvas/engine/issues/2596
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 reading unfinished PR #2972 and the original issue #2596, then trace the engine's shader-generation paths. Identify fragment shader uses where half precision is safe, and verify that the resulting shaders preserve correctness while improving fragment performance.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- computer-graphics, performance
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100