It is currently Mon May 13, 2024 3:15 am


The forum is READ ONLY. Please direct any future discussions to our Facebook page


 Page 2 of 2 [ 17 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: SD energy usage
PostPosted: Mon Oct 06, 2008 9:49 pm 
Newbie
Newbie

Joined: Mon Sep 01, 2008 10:22 pm
Posts: 30
Tarnus wrote:
Gizmo I am going to simplify it and say, yes your right, BUT, due to the enormous server hit that SD takes in the scheduler, we eliminated fighters consuming energy on the tick, hence the only time energy is consumed is when the SD is attacked. This is also why energy generation has been limited. If your gonna fly a ton of fighters expect them to drain energy under duress.


LOL. Fair enough. I wouldn't have thought that calculating SD would have caused such heartburn, but it sounds like you've already been down that road so I'll bow to your experience.


Offline
 Profile  
 
 Post subject: Re: SD energy usage
PostPosted: Tue Oct 07, 2008 10:27 am 
Developer
Developer
User avatar

Joined: Wed Feb 19, 2003 6:07 pm
Posts: 2930
gizmo wrote:
Tarnus wrote:
Gizmo I am going to simplify it and say, yes your right, BUT, due to the enormous server hit that SD takes in the scheduler, we eliminated fighters consuming energy on the tick, hence the only time energy is consumed is when the SD is attacked. This is also why energy generation has been limited. If your gonna fly a ton of fighters expect them to drain energy under duress.


LOL. Fair enough. I wouldn't have thought that calculating SD would have caused such heartburn, but it sounds like you've already been down that road so I'll bow to your experience.


When the fighters respond to an attack they check what friendly/team planets have energy and combine the total. After the attack is finished there is a query that will divide the energy used among the available planets in the sector. Now imagine that happening every 5 minutes for about 4,000 sectors with around 20,000 planets. It put a HUGE load on the database server.

The scheduler that runs every 5 minutes was taking close to 3 minutes on the Main Game when we had that many planets and sectors with SD. The CPU load was getting close to 200%. When we changed to this new method the load dropped to almost nothing and the scheduler took less than 20 seconds to run. With the other changes we h made that has dropped even lower on huge games.

So you can see it was needed. Without it many people couldn't run the game as their hosting companies would shut them down.



_________________
PJ's Annoyingly Useless Blog
ADOdb Lite
Template Lite
Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 2 of 2 [ 17 posts ]  Go to page Previous  1, 2


Who is online

Users browsing this forum: No registered users and 4 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: