Throttle Processor Usage

There is a new game server that our company would like to offer for rent. However, game developers did not create any sleep mode to disable physics when no players are connected, so there is 30% or so CPU on an empty server.

I found this game addon panel , which limits the use of the application processor.

I wrote some small C # .NET applications for our company to help improve our services, and I wonder how I will create something like this. Is it possible?

+5
source share
4 answers

. , , , .

System.Diagnostics.Process.PriorityClass (doc)

+3

, , . , . , , . . , . .

+2

, .

#?

, , Priority . :

Thread.CurrentThread.Priority = ThreadPriority.Lowest;

, , . , , , ? ThreadPriority .

0

, . , . , , , UDP, ", ". .

, 8- , , 12,5% .

, , .

: " -" ". - , .. .. core 7, HLT , , , .

, .

, .

0

All Articles