Skip to content

Nwserver 100% CPU bug

drillerdriller Member Posts: 17
Has anyone else seen this issue? It doesn't matter if it's an empty module with no scripts or one with a thousand, one player or ten, it happens on Windows and Linux. The old server did not do this.

Thanks,
-driller

Comments

  • LiarethLiareth Member Posts: 74
    The old server would sleep for 10ms each game update. This was fine on small servers but caused severe performance issues on large servers. We added a new config option called Clients Required To Disable CPU Sleep (under Game Options) with an integer value which can be used to toggle this behaviour back on. By default, the server will retain the old behaviour until one or more players join, then it will enter high performance mode without any sleeping. You can change this value to something that is greater than the maximum players allowed on your server if you never want the server to enter high performance mode.
  • drillerdriller Member Posts: 17
    Thank you for this information, it is really helpful. Except for docker images, it works great.

    Btw, not sure if you also maintain the nwnxee docker image. But in case you do, it ignores the nwnplayer.ini changes. I verified that it is getting copied from the local volume(~/./server) over to the container(/nwn/run and /nwn/home).

    I'm new to docker, so perhaps I am missing something?

    Thanks,
    -driller
  • raz651raz651 Member Posts: 175
    @niv is the person in charge of the docker program, at least he has posted information about it in this thead.

    https://forums.beamdog.com/discussion/67157/server-download-packages-and-docker-support#latest
  • drillerdriller Member Posts: 17
    Thanks Raz. But unfortunately, it doesn't address this specific issue.
  • raz651raz651 Member Posts: 175
    @Driller How bout this thread in Persistent Worlds forum. https://forums.beamdog.com/discussion/comment/960392/#Comment_960392
  • drillerdriller Member Posts: 17
    It's like what is happening to this guy. -> https://forums.beamdog.com/discussion/68874/nwnplayer-ini

    But there isn't resolution. When you run nwserver in the nwnxee docker it doesn't recognize the nwnplayer.ini. Even though the modified nwnplayer.ini is copied to the container, and is there.

    -driller

  • Knight_ShieldKnight_Shield Member Posts: 51
    I just noticed my server is running like this too. I s the server supposed to run 100% . I only remember my old running around 33%.
Sign In or Register to comment.