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

Setting "MaxPhysicsThreads" greater than 1 causes unusual high CPU usage, especially when server is empty #5074

Open
viaguy opened this issue Jan 22, 2025 · 0 comments
Labels
status: new This issue is fresh! target: multiplayer Affects multiplayer or servers target: performance Low FPS, lag spikes, etc...

Comments

@viaguy
Copy link

viaguy commented Jan 22, 2025

Game Version

v1.20.1

Platform

Linux

Modded

Vanilla

SP/MP

Multiplayer

Description

MaxPhysicsThreads set to 1. One player online, standing still
The CPU usage is the same when the server is empty. Everything seems normal to me here:
Image

MaxPhysicsThreads set to 8. One player online, standing still
Here we see 7 threads using higher amounts of CPU during the exact same situation as before:
Image

MaxPhysicsThreads set to 8. Empty server:
Image

I did test other values for MaxPhysicsThreads like 2, 4 and 6. The result is the same, just less pronounced.

How to reproduce

Here is what I did to confirm this issue is present in a vanilla install and wasn't caused by any mods I am running on my server:

Download the official linux server for v1.20.1 from vintagestory.at
Extract to an empty directory
Run the server once to generate the stock configuration json files
Edit servermagicnumbers.json changing only "MaxPhysicsThreads" to a number greater than 1.
Restart the server and observe detailed system CPU usage using something like htop

Screenshots

No response

Logs

Logs if you want them. Though I did take a look through them and I didn't see any helpful information.
server-debug.log

server-main.log

@viaguy viaguy added the status: new This issue is fresh! label Jan 22, 2025
@Craluminum2413 Craluminum2413 added target: performance Low FPS, lag spikes, etc... target: multiplayer Affects multiplayer or servers labels Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: new This issue is fresh! target: multiplayer Affects multiplayer or servers target: performance Low FPS, lag spikes, etc...
Projects
None yet
Development

No branches or pull requests

2 participants