playcanvas / playcanvas/engine

Shader precision optimizations

Open
#3,541 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.