Skip to content

meshoptimizer-m 1.3.1: built with -ffp-contract=off, the same results on every platform - #1

Merged
Sunrisepeak merged 1 commit into
mainfrom
fp-contract-off
Nov 14, 2026
Merged

Sunrisepeak merged 1 commit into
mainfrom
fp-contract-off

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

The library is built with -ffp-contract=off and without fast math. With the platform's default, arm64 fuses a multiply and an add into one rounding, so float decisions in the meshlet builder differ from x86-64: a scattered 48 × 48 sheet gives other meshlets (checked standalone on x86-64 with -mfma -ffp-contract=fast against -ffp-contract=off: different partitions, widest cluster about 1.78 against 1.38). Found by a consumer's test on ubuntu-24.04-arm. Version 1.3.1 is the first wrapper revision per mcpp-index docs/mwrap.md; the upstream sources are unchanged. Locally: the package's tests pass.

…ithout fast math — the same meshlets, clusters and simplifications on every platform. With the platform's default arm64 fuses a multiply and an add into one rounding and a scattered 48 × 48 sheet's meshlets differ from x86-64's (found by a consumer's test on ubuntu-24.04-arm: its widest cluster 1.57 against 1.5); the first wrapper revision (mwrap.md: upstream 1.3, revision 1)
@Sunrisepeak
Sunrisepeak merged commit 022a8a9 into main Nov 14, 2026
5 checks passed
@Sunrisepeak
Sunrisepeak deleted the fp-contract-off branch November 14, 2026 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant