You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using an Intel only (e.g. Macbook Pro 13'') laptop, or use gfxCardStatus to disable the discrete AMD/nVidia Graphics card.
Remove other layers and only focus on the choropleth layer (this bug is likely to affect all layers but it is easier to bug on the choropleth layer with an underlying map for reference)
Zoom into street level and check the choropleth contours, there is positive offset in y direction.
Possible causes:
Since this only happens on Intel cards, the code logic should be correct;
We only observe the offset in the y direction, and the offset scales proportionally as we zoom in and out, so very likely this is related to the mercator projection, in which the calcualtion for latitude invovles non-linear transformations (tan/log); where the calculation for the longitute (linear) does not suffer from this. And there might be precision issues/bugs in the Intel Math library (thanks @shaojingli for the hints).
highp mediump related? maybe?
The text was updated successfully, but these errors were encountered:
I can verify that the inaccurate tan() function from Intel's GLSL compiler is the root cause of this issue. I created a "intel_workaround" branch and replaced the tan() with my newly implemented tan_fp64(). The issue was no longer there. Please help me verify.
Of course, using an fp64 function seems to be an over-kill for this. We only need to have a more accurate tan() function in single precision.
This issue only appears on Intel graphics card.
To reproduce:
Possible causes:
The text was updated successfully, but these errors were encountered: