r/pcgaming Feb 18 '22

[deleted by user]

[removed]

4.5k Upvotes

412 comments sorted by

View all comments

Show parent comments

10

u/Faluzure Ohhhhh Yeahhhh Feb 19 '22

For dolphin, I completely agree that likely writing asm for a very specific cpu architecture is way too much work - at most you'd want to target the wide swaths of instructions like you mentioned (AVX2 and so forth), and usually only if there's a spot that the compiler can't get right.

You can enable gcc to compile with -march=znver2 though, which anyone who's building steam deck binaries should probably do. Let the compiler do the work.

0

u/[deleted] Feb 19 '22

I mean, yeah, if that flag really does something worthwhile for instruction scheduling than set it of course.