Skip to content

Replace -ffast-math flag with -funsafe-math-optimizations#2185

Open
Exotic0015 wants to merge 1 commit into
ValveSoftware:masterfrom
Exotic0015:master
Open

Replace -ffast-math flag with -funsafe-math-optimizations#2185
Exotic0015 wants to merge 1 commit into
ValveSoftware:masterfrom
Exotic0015:master

Conversation

@Exotic0015
Copy link
Copy Markdown

@Exotic0015 Exotic0015 commented May 17, 2026

An alternative to removing the -ffast-math flag - this PR replaces it with a more conservative one, which does not enable NaN or infinity assumptions that cause rounding errors - most notably blurriness when compiling with Clang.
-funsafe-math-optimizations enables most of the optimizations that -ffast-math does, so there shouldn't be a noticeable performance difference.

Fixes #1493

Sources:

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.

Compiling with O3 on Clang causes blurriness on Wayland

1 participant