mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-04-10 19:15:12 +00:00
Add CPU core detection for future multi-threaded operations
This commit is contained in:
parent
a15a022f00
commit
3ea6602ddd
|
|
@ -27,6 +27,8 @@ fi
|
|||
distro_name=$(flatpak-spawn --host grep '^ID=' /etc/os-release | cut -d'=' -f2)
|
||||
distro_version=$(flatpak-spawn --host grep '^VERSION_ID=' /etc/os-release | cut -d'=' -f2)
|
||||
gpu_info=$(flatpak-spawn --host lspci | grep -i 'vga\|3d\|2d')
|
||||
cpu_cores=$(nproc)
|
||||
max_threads=$(echo $(($(nproc) / 2)))
|
||||
|
||||
log d "Debug mode enabled"
|
||||
log i "Initializing RetroDECK"
|
||||
|
|
@ -39,6 +41,7 @@ log i "Resolution: $width x $height"
|
|||
if [[ $native_resolution == true ]]; then
|
||||
log i "Steam Deck native resolution detected"
|
||||
fi
|
||||
log i "CPU: Using $max_threads out of $cpu_cores available CPU cores for multi-threaded operations"
|
||||
|
||||
source /app/libexec/050_save_migration.sh
|
||||
source /app/libexec/checks.sh
|
||||
|
|
|
|||
Loading…
Reference in a new issue