Hi Build Experts!
I can build using gcc-11 with aggressive optimisations:
-march=native -mtune=native -O3 -pipe -flto
by searching and commenting out the -msse2 line in the CMakeLists.txt, and replacing it with the options mentioned above like this below:
# check_and_add_flag(HAVE_SSE2 -msse2)
add_definitions(-march=native -mtune=native -O3 -pipe -flto)
The game runs noticeably smoother, faster, and less stuttery and less glitchy!
And that's on Ubuntu 20.04, mesa 21.1.2 vulkan (ACO) on a i7-3740QM using integrated gpu HD 4000
On native resolution. Zelda Twilight Princess, Wind Waker, Ocarina of Time, all pay smoothly with the optimisations! All of them were slower and stuttery and glitchy before the optimisations above with the stock sse2 compromise for all chips!
However now that I've had a taste of speed on a very old chip that runs beautifully on native resolution on a large TV that auto-upscales whatever is sent through the hdmi.
I would like to do the same but this time using the llvm suite, basically:
However I would like to use the thin-LTO available with the LLVM/clang utilities. Basically I would like to get even more juice than the awesome juicer above!
I tried for several hours yesterday but couldn't even get basic LLVM with clang and linker working with the cmake setup.
Has anyone been able to do it? Or does anyone know how to do it? I've tried the clang options described here on even the stock settings and it fails for me on a fresh empty "build" folder. -
https://wiki.dolphin-emu.org/index.php?t...ng_Dolphin
I can only get clang to work on a gcc-primed "build" folder then switching the cmake settings to clang.
Nevertheless, clang is just the compiler. I want to use the LOT of LLVM and it's siblings! basically the outline above...llvm-suite, clang, ld.lld.
Thanks in advance to anyone who can help me, and I'm sure if you write the procedure here it will benefit others trying to get that perfect frame-rate and stutter-less experience on their many-times aged laptops and old-pc's like mine!
I can build using gcc-11 with aggressive optimisations:
-march=native -mtune=native -O3 -pipe -flto
by searching and commenting out the -msse2 line in the CMakeLists.txt, and replacing it with the options mentioned above like this below:
# check_and_add_flag(HAVE_SSE2 -msse2)
add_definitions(-march=native -mtune=native -O3 -pipe -flto)
The game runs noticeably smoother, faster, and less stuttery and less glitchy!
And that's on Ubuntu 20.04, mesa 21.1.2 vulkan (ACO) on a i7-3740QM using integrated gpu HD 4000
On native resolution. Zelda Twilight Princess, Wind Waker, Ocarina of Time, all pay smoothly with the optimisations! All of them were slower and stuttery and glitchy before the optimisations above with the stock sse2 compromise for all chips!
However now that I've had a taste of speed on a very old chip that runs beautifully on native resolution on a large TV that auto-upscales whatever is sent through the hdmi.
I would like to do the same but this time using the llvm suite, basically:
- llvm-12 suite of build utilities
- clang-12 and clang++-12
- ld.lld-12 linker
However I would like to use the thin-LTO available with the LLVM/clang utilities. Basically I would like to get even more juice than the awesome juicer above!
I tried for several hours yesterday but couldn't even get basic LLVM with clang and linker working with the cmake setup.
Has anyone been able to do it? Or does anyone know how to do it? I've tried the clang options described here on even the stock settings and it fails for me on a fresh empty "build" folder. -
https://wiki.dolphin-emu.org/index.php?t...ng_Dolphin
I can only get clang to work on a gcc-primed "build" folder then switching the cmake settings to clang.
Nevertheless, clang is just the compiler. I want to use the LOT of LLVM and it's siblings! basically the outline above...llvm-suite, clang, ld.lld.
Thanks in advance to anyone who can help me, and I'm sure if you write the procedure here it will benefit others trying to get that perfect frame-rate and stutter-less experience on their many-times aged laptops and old-pc's like mine!