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
As of #695 we have a regression in longpathdash, generating artifacts consistent with loss of watertightness. The artifacts are present for both butt and round caps.
The most likely explanation is a discrepancy between the way tangents are computed on the CPU when encoding the cap and on the GPU. My guess is that the above patch made these match for cubic segments but not for lines.
Thanks to @DJMcNab for noticing; there's a Zulip thread with a bit of discussion.
The text was updated successfully, but these errors were encountered:
When encoding a start tangent for an end cap or closed segment, use
logic designed to match the GPU computed tangent for the first segment.
Note: this changes the GPU calculation to write out the lerp calculation
explicitly rather than use the mix intrinsic, so we can rely on the
rounding behavior. In the presence of fastmath, the rounding behavior is
not guaranteed, but it is verified to work on M1.
Fixes#704, unless we get bitten by fastmath.
When encoding a start tangent for an end cap or closed segment, use
logic designed to match the GPU computed tangent for the first segment.
Note: this changes the GPU calculation to write out the lerp calculation
explicitly rather than use the mix intrinsic, so we can rely on the
rounding behavior. In the presence of fastmath, the rounding behavior is
not guaranteed, but it is verified to work on M1.
Fixes#704, unless we get bitten by fastmath.
---------
Co-authored-by: Daniel McNab <[email protected]>
As of #695 we have a regression in longpathdash, generating artifacts consistent with loss of watertightness. The artifacts are present for both butt and round caps.
The most likely explanation is a discrepancy between the way tangents are computed on the CPU when encoding the cap and on the GPU. My guess is that the above patch made these match for cubic segments but not for lines.
Thanks to @DJMcNab for noticing; there's a Zulip thread with a bit of discussion.
The text was updated successfully, but these errors were encountered: