Commit e51227a
docs(light): correct two javadoc claims the code stopped supporting (#37)
Both were flagged in the wiki as open items. Neither is a wording problem.
FalcoLightingChunk said "Three overrides, and every one of them only reports
something to the scheduler". There are five, and two of them report nothing to
the scheduler: invalidate drops the cached light packet, and onLightUpdated
drops it and sends a fresh one to the viewers. The claim the paragraph exists
to make — that the class holds no computation logic — is true and now rests on
what the class actually contains.
AreaVsPerChunkBenchmark said the chunks are "rebuilt per iteration so neither
side benefits from the light the other one left behind". The second half is
right, and for a different reason than stated: JMH gives each measured method
its own trial, so area() and perChunk() never share chunks. The first half is
wrong — @setup is Level.Trial, so within one trial the chunks are not rebuilt
at all, and since both methods write light into them, every iteration after
the first re-lights already lit chunks.
Whether that moves the number is untested and now says so rather than being
asserted either way. Raising the setup to Level.Iteration would answer it and
would also leave the configuration the published table was measured under, so
it is not something to change while fixing a comment.
Claude-Session: https://claude.ai/code/session_01QzEdy5fN5JKGxJo8gwtNeu
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent c206ef3 commit e51227a
2 files changed
Lines changed: 17 additions & 7 deletions
File tree
- falco-benchmarks/src/jmh/java/net/onelitefeather/falco/benchmark/light
- falco-light/src/main/java/net/onelitefeather/falco/light
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
46 | 53 | | |
47 | 54 | | |
48 | 55 | | |
| |||
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| |||
0 commit comments