Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPU Performance, Asset Loading, Automatic Restart #42

Merged
merged 4 commits into from
May 11, 2024

Conversation

Cornholio777
Copy link
Contributor

  • 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.

Deleted to add more descriptive details.
- 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.
Commit was to fix the server console display.
@data-bomb data-bomb added the enhancement New feature or request label May 11, 2024
@data-bomb data-bomb self-requested a review May 11, 2024 19:56
@data-bomb
Copy link
Owner

Review complete

  • Potentially the second ECHO OFF can be removed at some point later but it's fine as-is
    Tested to ensure it correctly sets CPU priority, affinity, and re-launches at the specified 24-hour interval

@data-bomb data-bomb merged commit f2d67e8 into data-bomb:main May 11, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants