About weather
#4
(06-12-2012, 12:10 AM)cedeel Wrote: Your proposal sounds nice, but in my understanding we would still be making a check each tick, now whether the interval was reached.
Yes, but the check is much less strain than an extra thread. The check is a simple substraction and then comparison, about four CPU instructions. An extra thread means extra thread context switching and synchronization.

(06-12-2012, 12:10 AM)cedeel Wrote: Better yet, make worlds without weather skip weather altogether (small change to world.ini)
Implementation details, of course.

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: 3 Guest(s)