From a2397c28f0504352213f5843b7a2869d7e018ae0 Mon Sep 17 00:00:00 2001 From: the Sane <3657071+the-sane@users.noreply.github.com> Date: Tue, 16 Feb 2021 14:23:14 -0500 Subject: [PATCH] Add preflight check for AVX --- lug-helper.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lug-helper.sh b/lug-helper.sh index d76225e..cf329e3 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -648,6 +648,15 @@ memory_check() { fi } +# Check CPU for the required AVX extension +avx_check() { + if grep -q "avx" /proc/cpuinfo; then + preflight_pass+=("Your CPU supports the necessary AVX instruction set.") + else + preflight_fail+=("Your CPU does not appear to support the necessary AVX instruction set.\nThis requirement was added to Star Citizen in version 3.11") + fi +} + # Delete the shaders directory rm_shaders() { # Get/Set directory paths @@ -1031,6 +1040,7 @@ preflight_check() { # Call the optimization functions to perform the checks memory_check + avx_check mapcount_check filelimit_check