-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Use separate attribute elements for line normals #5073
Conversation
Given that the line program is one of the programs that has hit snags by exceeding |
Good thought, but this PR doesn't increase the number of attributes -- it uses the previously unused |
Aha — I had skimmed something somewhere that said
but I see now based on official docs ("the maximum number of 4-component generic vertex attributes accessible to a vertex shader") that that source is either mistaken or poorly worded. |
I'm worried that we once again increase the amount of data uploaded to the GPU, this time by 50% for line layers (which are by far the heaviest in our maps). |
@mourner Do you have an alternative in mind? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐
Broadcom GPUs don't cope well with using the least significant bit for this.
a681eca
to
6b46030
Compare
Ok, going to go with adding a single extra component -- tested, works on device, only increases size by 25%. |
Broadcom GPUs don't cope well with using the least significant bit for this.
Refs mapbox/mapbox-gl-native#7583.