mirror of
https://github.com/the-sane/lug-helper.git
synced 2024-12-28 15:54:19 +00:00
Add preflight check for AVX
This commit is contained in:
parent
e8891b42e6
commit
a2397c28f0
@ -648,6 +648,15 @@ memory_check() {
|
|||||||
fi
|
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
|
# Delete the shaders directory
|
||||||
rm_shaders() {
|
rm_shaders() {
|
||||||
# Get/Set directory paths
|
# Get/Set directory paths
|
||||||
@ -1031,6 +1040,7 @@ preflight_check() {
|
|||||||
|
|
||||||
# Call the optimization functions to perform the checks
|
# Call the optimization functions to perform the checks
|
||||||
memory_check
|
memory_check
|
||||||
|
avx_check
|
||||||
mapcount_check
|
mapcount_check
|
||||||
filelimit_check
|
filelimit_check
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user