Jump to content
The Ninja Forum
Sign in to follow this  
Crazy_Angel

Offline Calculus

Recommended Posts

What would change: User side nothing visible, server side improvement.

How it benefits: Server cost reduced, instead of non stop work on a character to determine the regen the algorythm calculates the time difference from the moment the user went offline to online again. A one time calculation.

Why it matter: Server stress reduced, possible speed improvement.

Problems: None at this moment from my tests!

Description: When the user logs out, the server saves the time when the user loged out and when the user logs back in the game, the server does a one time calculation to see the timeframe and adds the missing regen to the character. So instead of calculating every minute the regen it just calculates for how much time he or she was offline and adds the missing regen.

Example: I log out for one hour, the server stops the regen. When i log back in, the server adds the missing regen (60 minutes *current regen).

Share this post


Link to post
Share on other sites

As memory serves it already worked this way? Unless someone did something incredibly silly.

Share this post


Link to post
Share on other sites

I'm pretty positive it still works this way Aet. Except that instead of every time you log in, I believe it re-calculates every time you load a page. 

 

Anyway, I'll close this now.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×
×
  • Create New...