From 2d547448d2d216b026f45c7907796cdaa9da7792 Mon Sep 17 00:00:00 2001 From: Cornholio <143255018+Cornholio777@users.noreply.github.com> Date: Sat, 11 May 2024 21:04:26 +0200 Subject: [PATCH 1/4] Add files via upload --- rungame.bat | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 rungame.bat diff --git a/rungame.bat b/rungame.bat new file mode 100644 index 0000000..2289ef7 --- /dev/null +++ b/rungame.bat @@ -0,0 +1,12 @@ +@ECHO OFF +SETLOCAL EnableExtensions +SET "EXE_PATH=Silica.exe" +SET "ADDITIONAL_ARGS=--nogpu --batchmode --nographics --render-offscreen --screen-width 0 --screen-height 0 --fullscreen 0 --assetbundle-compression LZ4 --target-frame-rate 48 --noaudio" +SET "MELON_ARGS=--melonloader.hideconsole --melonloader.disablestartscreen" +:RESTART_LOOP +start "" /B /HIGH /AFFINITY 0x0000000000000FFF %EXE_PATH% %MELON_ARGS% %ADDITIONAL_ARGS% +@ECHO OFF +timeout /t 86400 +taskkill /IM "Silica.exe" /F +goto RESTART_LOOP +ENDLOCAL \ No newline at end of file From dae5bbacc041ac447a4e11f142ecc7d41359256f Mon Sep 17 00:00:00 2001 From: Cornholio <143255018+Cornholio777@users.noreply.github.com> Date: Sat, 11 May 2024 21:09:46 +0200 Subject: [PATCH 2/4] Delete rungame.bat Deleted to add more descriptive details. --- rungame.bat | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 rungame.bat diff --git a/rungame.bat b/rungame.bat deleted file mode 100644 index 2289ef7..0000000 --- a/rungame.bat +++ /dev/null @@ -1,12 +0,0 @@ -@ECHO OFF -SETLOCAL EnableExtensions -SET "EXE_PATH=Silica.exe" -SET "ADDITIONAL_ARGS=--nogpu --batchmode --nographics --render-offscreen --screen-width 0 --screen-height 0 --fullscreen 0 --assetbundle-compression LZ4 --target-frame-rate 48 --noaudio" -SET "MELON_ARGS=--melonloader.hideconsole --melonloader.disablestartscreen" -:RESTART_LOOP -start "" /B /HIGH /AFFINITY 0x0000000000000FFF %EXE_PATH% %MELON_ARGS% %ADDITIONAL_ARGS% -@ECHO OFF -timeout /t 86400 -taskkill /IM "Silica.exe" /F -goto RESTART_LOOP -ENDLOCAL \ No newline at end of file From 93535a57126bc3f2ecbd7eb38d8d1e3a78304307 Mon Sep 17 00:00:00 2001 From: Cornholio <143255018+Cornholio777@users.noreply.github.com> Date: Sat, 11 May 2024 21:24:53 +0200 Subject: [PATCH 3/4] CPU Performance, Asset Loading, Automatic Restart - Sets CPU Priority for the silica.exe to High. Sets the CPU Affinity to use CPU 0 to CPU 11, this is optimized for using 12 logical threads so for example a 12600k with 12 P-Cores, ignoring the 4 E-cores. - Please observe, if you have more or less P-Cores you need to adjust the CPU Affinity, see what the hex you should be using this converter: https://bitsum.com/tools/cpu-affinity-calculator/ - The E-Cores are always the last ones in the CPU Affinity List in Task Manager. For example, 12600k P-Cores are CPU 0 to CPU 11, and E-Cores are CPU 12 to CPU 15. - Additional arguments will improve asset loading times and running server at a maximum of 48 fps. - The script also restarts the server automatically every 24 hours. --- rungame.bat | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 rungame.bat diff --git a/rungame.bat b/rungame.bat new file mode 100644 index 0000000..2289ef7 --- /dev/null +++ b/rungame.bat @@ -0,0 +1,12 @@ +@ECHO OFF +SETLOCAL EnableExtensions +SET "EXE_PATH=Silica.exe" +SET "ADDITIONAL_ARGS=--nogpu --batchmode --nographics --render-offscreen --screen-width 0 --screen-height 0 --fullscreen 0 --assetbundle-compression LZ4 --target-frame-rate 48 --noaudio" +SET "MELON_ARGS=--melonloader.hideconsole --melonloader.disablestartscreen" +:RESTART_LOOP +start "" /B /HIGH /AFFINITY 0x0000000000000FFF %EXE_PATH% %MELON_ARGS% %ADDITIONAL_ARGS% +@ECHO OFF +timeout /t 86400 +taskkill /IM "Silica.exe" /F +goto RESTART_LOOP +ENDLOCAL \ No newline at end of file From 33f96b728ef5f3c1eae184131d5f2a6f1fc9aef2 Mon Sep 17 00:00:00 2001 From: Cornholio <143255018+Cornholio777@users.noreply.github.com> Date: Sat, 11 May 2024 21:36:58 +0200 Subject: [PATCH 4/4] Update rungame.bat Commit was to fix the server console display. --- rungame.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rungame.bat b/rungame.bat index 2289ef7..335ba36 100644 --- a/rungame.bat +++ b/rungame.bat @@ -6,7 +6,7 @@ SET "MELON_ARGS=--melonloader.hideconsole --melonloader.disablestartscreen" :RESTART_LOOP start "" /B /HIGH /AFFINITY 0x0000000000000FFF %EXE_PATH% %MELON_ARGS% %ADDITIONAL_ARGS% @ECHO OFF -timeout /t 86400 +timeout /t 86400 /nobreak > NUL taskkill /IM "Silica.exe" /F goto RESTART_LOOP -ENDLOCAL \ No newline at end of file +ENDLOCAL