About weather
#1
Hello all,

I've been pondering about the weather system in MCS for a few days now.

The current system of changing the weather isn't optimal for a few reasons:
  • Causes strain on the server by checking weather every tick
  • Is a little too random
  • Almost guarantees a thunderstorm will happen

As a matter of fact, a feature request was opened in the bug tracker and I could keep the discussion there, but I feel more people will read it here and possibly come with suggestions.

I've been reading the bukkit source (around line #1773) to figure out how they were doing it, but this only describes some of the logic that needs to be implemented.

I've seen a comment in the MCS source questioning whether each world should have its own thread, which seems like a reasonable start.

My current thoughts on improving the weather system are as follows:

1.
  1. Implement an observable weather management class, which would run in its own thread.
  2. Make the world respond to the weather management.

In this scenario with the current world implementation, all worlds would have the same weather.

Discuss Smile
Reply
Thanks given by:


Messages In This Thread
About weather - by cedeel - 06-11-2012, 11:49 PM
RE: About weather - by xoft - 06-11-2012, 11:59 PM
RE: About weather - by cedeel - 06-12-2012, 12:10 AM
RE: About weather - by xoft - 06-12-2012, 12:35 AM
RE: About weather - by Taugeshtu - 06-12-2012, 12:53 AM
RE: About weather - by cedeel - 06-12-2012, 01:02 AM
RE: About weather - by Taugeshtu - 06-12-2012, 01:11 AM



Users browsing this thread: 1 Guest(s)