87andrewh / CornerCullingSourceEngine

A Source/CSGO port of CornerCulling
49 stars 19 forks source link

Add ability to target non FMA CPU #2

Closed xobust closed 3 years ago

xobust commented 3 years ago

Some old servers I tried did not support FMA. I made a non FMA version and tested it.

An improvement could be to check for FMA support at runtime, but I didn't find a good solution for that yet.

I added a "march=native" compiler flag this will build for FMA if it is available on the build cpu. If you want to build for multiple CPU types it might be better to manually tune the cflags.

87andrewh commented 3 years ago

Oh, do you think -march=native will cause issues when people on machines that are different from their servers?

xobust commented 3 years ago

Yes it could create incompatible binaries, It might be better to remove it and tell people to add -mfma if the server cpu is newer than sandy bridge.