CoreNetwork / Mantle

The main plugin powering majority of features on Flatcore
1 stars 1 forks source link

[Might be invalid] Animal spawning optimization #313

Closed riddle closed 9 years ago

riddle commented 9 years ago

If this debug is to believed:

12:05:15 [INFO] [Mantle] Running DiminishTimerChecker!
12:05:15 [INFO] [Mantle] Finished DiminishTimerChecker!
12:05:16 [INFO] [Mantle] Starting animal spawning PREPARE!
12:05:16 [INFO] [Mantle] [ANIMAL] Randomizing chunks - start!
12:05:16 [INFO] [Mantle] Random weighted chunk : 964520
12:05:16 [INFO] [Mantle] Random weighted chunk : 868439
12:05:16 [INFO] [Mantle] Random weighted chunk : 699471
12:05:16 [INFO] [Mantle] [ANIMAL] Randomizing chunks - finish!
12:05:16 [INFO] [Mantle] Spawning PREPARE ended!
12:05:16 [INFO] [Mantle] PREPARE Counter: 3
12:05:16 [INFO] [Mantle] PREPARE Time: 0.600406
12:05:16 [INFO] [Mantle] Starting animal spawning SYNC!
12:05:16 [INFO] [Mantle] Night! Cancelling...

The fact that it’s night happens after all those checks and calculations… which seems wasteful and wrong.

Again, I didn’t read the code. Feel free to close if it’s all good.