server CPU time

Forum Archive - from http://theuniversal.net
Locked
User avatar
leigon
World Owner
World Owner
Posts: 563
Joined: Thu Apr 15, 2004 11:23 pm
Location: UK - Programming under the influance.

server CPU time

Post by leigon »

how about making a third option....

Uising free cpu time when possable insted of being fully on or in "lazy mode"
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

thats quite spooky. i separately had the same thought just last night and so added that very option... It improves ping responses on servers by about 60ms in most cases compared to lazy mode, but doesnt seem to overly affect the running of the machine.
User avatar
leigon
World Owner
World Owner
Posts: 563
Joined: Thu Apr 15, 2004 11:23 pm
Location: UK - Programming under the influance.

Post by leigon »

what made you think about it? :P

I was thinking of the old Floding days :)
User avatar
leigon
World Owner
World Owner
Posts: 563
Joined: Thu Apr 15, 2004 11:23 pm
Location: UK - Programming under the influance.

Post by leigon »

I tryed it... I still have 60+ free cpu at any time...

same as usual...
User avatar
leigon
World Owner
World Owner
Posts: 563
Joined: Thu Apr 15, 2004 11:23 pm
Location: UK - Programming under the influance.

Post by leigon »

nearly forgot... if your having trouble take a look at the distrobuted folding sorce... they have a tryed any tested mode.
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

if you've still got free cpu time it means it doesnt need any more, leig :) My code's just *that* efficient :] Most of the time there isnt much for it to do anyway.. generally its just sitting there waiting to react to a message from a player.

The medium mode is looping once every 20ms or so - any faster and ya can start getting weirdness in some of the calculations it does (some assume that at least 1/100th of a second has passed since the last update). If you really reallly wanna get some more of your CPU time used, the best answer is prolly to get another world running :)
Locked