KhronosGroup / KhronosGroup/WebGL

NVIDIA graphics calculates texture samples in branches that are not possible

Open
#3,102 16 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
2.9k
Forks
704
Avg merge
2d 9h
Merged PRs (30d)
4

Description

In the glsl of webgl or webgl2, if there is texture sampling statement in the branch, even if it is impossible to execute, it will sample and predict, which will greatly increase the GPU occupancy rate. If there is for(;;){...} in the branch, NVIDIA will stop running. But if it is running in the browser of mobile phone or integrated graphics card, it will not have this problem.

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

No source files, tests, or entry points are identified in the issue. Start by reproducing the shader texture-sampling behavior in WebGL and WebGL2 on NVIDIA, mobile, and integrated graphics; the work is done when the behavior is understood and a concrete repository change or documented resolution is identified.

Written by the indexing model from the issue text.

Assessment

Domain
computer-graphics
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.