我在mapbox上做等高线渲染时,我似乎发现了N卡的精度问题。
When I was doing contour rendering on Mapbox, I seemed to find accuracy issues with the NVIDIA GPUs

如图,在等高线的边缘会产生一些模糊和闪烁,这是我在 Intel (R) UHD Graphics 和 Apple M1上未曾体现的 bug。
As shown in the image, some blurring and flickering appear at the edges of the contour lines—a bug that I have not observed on Intel (R) UHD Graphics or the Apple M1 .
事实上,我通过卷积以确定片元是否是不同高程级别的分界点,即是否应该被输为特定的等高线颜色。此外,在具体实现里,我在GLSL中声明了 precision highp float;
以追求更高的浮点精度,但是无法解决问题。
In fact, I use convolution to determine whether a fragment lies on the boundary between different elevation levels—that is, whether it should be rendered with a specific contour line color. Additionally, in the actual implementation, I declared precision highp float;
in GLSL to achieve higher floating-point precision, but the issue persists.
我分别在配置 UHD Graphics 630,Macbook M1,GTX 1650, RTX 4050 laptop 的四台电脑上进行测试,结果表明,只有 N 卡出现了问题。
I tested on four computers equipped with UHD Graphics 630 , MacBook M1, GTX 1650, and RTX 4050 Laptop, respectively. The results show that only the NVIDIA GPUs exhibited the issue.