Commit 7715a12
debug: delay zero scan and log handicap drift for diagnosis
The race fix landed correctly (the latest report's level matches
(total - initialCount)/level_cost so initialCount is being read right),
but a 3,358-point gap still appears on a fresh island with no Poseidon
pregens and no player builds. That points at decoration evolution inside
already-scanned chunks (lava+water forming obsidian late, fluid
simulation, trial-spawner state, chunk-border ore patches) — value the
zero scan didn't see because it ran too early.
Two debugging changes to narrow down what's drifting:
- Lengthen the IslandCreatedEvent zero-scan delay from 150 ticks to
whatever zero-scan-delay-ticks is set to (default 600 = 30s). Reuses
the listener's decoration-settle window so both code paths give the
world the same chance to finish generating before snapshotting.
Floored at 150 so admins lowering the setting don't break the original
"wait a few seconds" intent.
- Log per-chunk drift on every reconcile that finds any new/growing/
shrinking chunks: counts of each plus the top 5 growing chunks by
delta. Once we can see whether the gap is a handful of chunks
evolving by a lot or many chunks evolving by a little, we can pick
the right fix (longer delay vs absorb-on-first-scan vs something
else).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f254f04 commit 7715a12
2 files changed
Lines changed: 54 additions & 10 deletions
File tree
- src/main/java/world/bentobox/level
- listeners
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
769 | 769 | | |
770 | 770 | | |
771 | 771 | | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
772 | 778 | | |
773 | | - | |
774 | | - | |
775 | | - | |
776 | | - | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
777 | 799 | | |
778 | 800 | | |
779 | 801 | | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | 802 | | |
785 | 803 | | |
786 | 804 | | |
787 | 805 | | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
788 | 825 | | |
789 | 826 | | |
790 | 827 | | |
| |||
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
46 | 53 | | |
47 | 54 | | |
48 | 55 | | |
| |||
0 commit comments