Repository navigation
Transparent GLKView - #3096
Transparent GLKView#3096
Conversation
|
Neat. Will test. One thing that jumps out is possible performance implications of a non-opaque backing layer all the time. |
|
... which you mentioned 😄 |
|
Yes, I haven’t profiled the difference, and in particular I haven’t tried this out on older hardware, but it isn’t nearly as bad as I feared. |
|
If there does turn out to be a significant performance impact, we can also make the transparency optional, by tying it to |
|
Going to rebase locally and try to quantify performance impact, see if I can find anything that would keep us from merging this. |
|
If we honor |
|
Found an unrelated, strange rendering issue with translucent water polygons, but this PR seems solid. 👍 |
c246ff0 to
100ae19
Compare
Tie layer opacity to view opacity. Fixes #3038.
100ae19 to
5f58c01
Compare
Set the GLKView’s layer to be non-opaque. In rudimentary testing, this appears to have no noticeable performance impact on styles that have opaque background layers (which should be the vast majority of styles). Any performance impact I’m seeing with a transparent background style layer appears to be due to content beneath the map view.
Fixes #3038.
/cc @incanus