[CF-Devel] Large forest. Was: more proposals

crossfire-devel-admin at archives.real-time.com crossfire-devel-admin at archives.real-time.com
Wed Jun 25 05:44:55 CDT 2003


>
     
      tend to guess that it is the loading/saving of maps which is going to be 
     
     >
     
      the major performance hit on the server site - and communicating what is 
     
     >
     
      on the map frm the server to client and back again.
     
     
Since the WG is just another client, the server only needs to send the
usual info to it, no performance hit there.  Sending info back again would
bog down the server, if it was a large lump of info.  With the current
weather resolution, it won't be a large lump.  I am trying to cut it down
to only the info needed for the map the WG is currently on.
 
>
     
        One could certainly only do these updates when no one is on the server
     
     >
     
      - I think the current weather code tries to do that.
     
     
Exactly the opposite, the weather updates to the maps happen on maps that
players are currently on.  The current weather system also slowly goes
through the maps one at a time updating.

>
     
        If performance was really an issue, making a weather thread would
     
     >
     
      probably be the way to go.  Only minimal amount of locking would be
     
     needed 
>
     
      - all the weather values would be private, so it'd only need to lock 
     
     >
     
      access to a map level.
     
     
Part of my reason for doing the split is that I am invloved in a cluster
project, and simulating weather is a good job for a cluster.  So I want to
have the Weather God server running on a seperate computer / cluster. 
Tricky to do with threads.

Once I have the basics running, I will dramatically increase the reolution
of the weather system, but it shouldn't increase the load on the game
server.  By making the resolution a configurable parameter, ordinary server
operators won't be needing super computers to calculate weather B-).  On
the other hand, those that want more and have some spare computers lying
around...

Is any of this stuff I am doing needed?  Nope, only the previous patches I
posted are needed to make the weather system better.  Weather God just fits
in with other stuff I am doing, so I'll do it.



     
     http://mobile.yahoo.com.au
     
      - Yahoo! Mobile
- Check & compose your email via SMS on your Telstra or Vodafone mobile.

_______________________________________________
crossfire-devel mailing list
     
     crossfire-devel at lists.real-time.com
     
     
     https://mailman.real-time.com/mailman/listinfo/crossfire-devel
     
     
    


More information about the crossfire mailing list