Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update renderer.md #5238

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update renderer.md #5238

wants to merge 1 commit into from

Conversation

salam
Copy link

@salam salam commented Feb 12, 2023

Added a section / remark that setting precision to medium is problematic, when using A-Frame in production.

Added a section / remark that setting precision to medium is problematic, when using A-Frame in production.
Set precision in fragment shaders. Main use is to address issues in older hardware / drivers. Adreno 300 series GPU based phones are [particularly problematic](https://github.com/mrdoob/three.js/issues/14137). You can set to `mediump` as a workaround. It will improve performance, in mobile in particular but be aware that might cause visual artifacts in shaders / textures.
Set precision in fragment shaders. Main use is to address issues in older hardware / drivers. Adreno 300 series GPU based phones are [particularly problematic](https://github.com/mrdoob/three.js/issues/14137). You can set to `mediump` as a workaround. It will improve performance, in mobile in particular but be aware that might cause visual artifacts in shaders / textures.

> **NOTE:** Reportedly, some Android models (e.g. Huawei p30 lite, Samsung Galaxy 7, 6 and A5) show up faulty rendering of lighting / shadows when precision is set to `medium`, but work properly with precision set to `high`. So, possibly a device-specific precision setting might come in useful for broadest device support.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this something permanent or will get fixed? Always trying to avoid adding info to the docs that might go out of date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants