View unanswered posts | View active topics It is currently Sat Apr 25, 2026 11:41 am



Reply to topic  [ 3 posts ] 
 Xport CPU load 
Author Message
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post Xport CPU load
When you xport it has to calculate the distance to each ship in the list, even if the list is aborted. Makes sense of course, since the game as to deny the xport if it's out of range. But the time required increases with every ship on the list, so it appears as if it's doing a separate distance search for each ship. But perhaps the same BFS queue could be used for all of the ships, which would dramatically reduce the amount of CPU use.

This is a problem in games where a lot of ships are in use and people xport a lot. It can cause some serious CPU spikes.

_________________
May the unholy fires of corbomite ignite deep within the depths of your soul...

1. TWGS server @ twgs.navhaz.com
2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads
3. Open IRC chat @ irc.freenode.net:6667 #twchan
4. Parrothead wrote: Jesus wouldn't Subspace Crawl.

*** SG memorial donations via paypal to: dpocky68@booinc.com
Image


Thu Dec 20, 2007 10:21 pm
Profile ICQ WWW
Immortal Op

Joined: Thu May 29, 2008 9:04 am
Posts: 143
Location: Kitchener, Ontario, Canada
Unread post Re: Xport CPU load
Singularity wrote:
When you xport it has to calculate the distance to each ship in the list, even if the list is aborted. Makes sense of course, since the game as to deny the xport if it's out of range. But the time required increases with every ship on the list, so it appears as if it's doing a separate distance search for each ship. But perhaps the same BFS queue could be used for all of the ships, which would dramatically reduce the amount of CPU use.

This is a problem in games where a lot of ships are in use and people xport a lot. It can cause some serious CPU spikes.


Maybe changeing the defualt CPU priority to Normal rather than High in the
server configure tab may make for more balanced cpu activity.

_________________
Stoneslinger
http://theswampbbs.net
telnet://theswampbbs.net


Sun Jun 19, 2011 3:47 pm
Profile WWW
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post Re: Xport CPU load
Stoneslinger wrote:
Maybe changeing the defualt CPU priority to Normal rather than High in the server configure tab may make for more balanced cpu activity.


It's already set to normal. The CPU load problem had to do with TW recalculating the warp course for every ship in the xport list, even if you abort the display. That means running a course search dozens, maybe hundreds of times, without any text flow to pace things.

I believe this was solved in an earlier beta. I believe JP made the list truly abortable, so that it doesn't need to calculate the distances if you abort the list anymore.

_________________
May the unholy fires of corbomite ignite deep within the depths of your soul...

1. TWGS server @ twgs.navhaz.com
2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads
3. Open IRC chat @ irc.freenode.net:6667 #twchan
4. Parrothead wrote: Jesus wouldn't Subspace Crawl.

*** SG memorial donations via paypal to: dpocky68@booinc.com
Image


Sun Jun 19, 2011 3:58 pm
Profile ICQ WWW
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 76 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by wSTSoftware.