Re: tes3mp code was made public
Posted: 19 Jul 2016, 22:06
Looks nice. One thing: It sets the number of cores to 5 - my system only has four, so this might be a bit crude. Here is some code to detect the number of processors (might not be portable, tho!):GrimKriegor wrote:Hello there gentlemen of Vehkland, I see aesylwinn has already suggested ways to build TES3MP, allow me to suggest however this build script we have prepared in the last few days to help people build and update it easily on GNU/Linux, and maybe even Mac OS X.
Hope this can be of use to some of you.
Code: Select all
cat /proc/cpuinfo |grep -E "^processor.*:.*([0-9]+)"|tail -n1|perl -wlne 'print $1 if $_ =~ /:.*([0-9]+)/'