Commit Graph

19 Commits

Author SHA1 Message Date
iam 6e179dbd8a
Fix Lighting Invalidation (#2041)
-  Fix invalid lighting being sent to clients
-  Add cherry leaves to occludes
-  Fix lighting being generated when using loaded lighting
-  Send lighting to clients on block changes
-  Cleanup unused methods
-  Add sky lighting test for short grass
2024-03-24 16:23:26 -04:00
iam4722202468 6d175c4ff9 expose internal and external lighting 2024-02-10 18:06:31 -05:00
iam4722202468 4fea03fe32 Never relight non-lighting chunk 2024-02-10 18:06:31 -05:00
iam4722202468 aca67fc5d8 Don't relight entire chunk 2024-02-10 18:06:31 -05:00
iam4722202468 225a834ef8 Add api to get lighting of instance 2024-02-10 18:06:31 -05:00
iam4722202468 9ed8605edc Documentation 2024-02-10 14:23:49 -05:00
iam f0f81803a5 Fix lighting tests & heightmap (#137)
* fix tests

* fix heightmap lookup

(cherry picked from commit 7d717ada584bc3a3feaeda470113bb4adeb774ae)
2024-02-09 14:27:43 -05:00
iam 8aedd5fc26 Send Lighting Immediately (#131)
Fix lighting

(cherry picked from commit 0494ee0b97c0ce28ffd6d744a494c65fa8308658)
2024-02-09 14:27:43 -05:00
mworzala 2f85ce0231 stable configuration state join
(cherry picked from commit 465af0e051)
2024-02-09 14:27:43 -05:00
iam 926871c86e hollow-cube/lighting-join-patch (#56)
(cherry picked from commit 010fe985bb)
2024-02-09 14:27:43 -05:00
mworzala 351d2197b1 collect all server options in ServerFlag file, other minor changes 2024-02-09 14:27:43 -05:00
iam c616b3498a hollow-cube/lighting-memory-reduction
Lighting reduce memory + Fix lighting not sending + Performance (#31)

* Reduce memory

* Clone

* Executor pool + cleanup

* Cleanup

* Don't batch, it's slower

* Parallel chunk loading for test

* Check below chunk 6. Sky light data doesn't appear to be saved above the highest point in the chunk height map.

* Fix weird locking

* ඞ

* Fix test

* Fix indentation

* Use short instead of int

* Use short instead of int

* Start removing borders

* Borders gone

* Cleanup

* Cleanup

* Remove borders fully - Still needs cleanup

* Cleanup 1

* Cleanup 2

* Cleanup 3

* Cleanup 4

* Cache

* Performance

* Performance

* Cleanup

* Cleanup

* Refactor

* Cleanup from self-review

(cherry picked from commit 12aa1e6b7b)
2024-02-09 14:27:43 -05:00
mworzala 37f6877b0a hollow-cube/block-handler-in-chunk-setblock
(cherry picked from commit 54e839e58a)
2024-02-09 14:27:43 -05:00
iam b32146a316 hollow-cube/lighting-update-2
Delay light sending, send lighting slower, fix sending multiple times

---------

Co-authored-by: mworzala <mattheworzala@gmail.com>
(cherry picked from commit 8a5c610b7b)
2024-02-09 14:27:43 -05:00
mworzala f019fe69d0 hollow-cube/respectful-chunk-sending
(cherry picked from commit 9f3ee89506)
2024-02-09 14:27:43 -05:00
Matt Worzala 969e0d6643 hollow-cube/1.20
* initial 1.20 support

* test fixes

* anvil 1.20, 1.20.1

(cherry picked from commit 716f32972a)
2024-02-09 14:27:43 -05:00
mworzala 2f6941c68e iam fix to lighting
(cherry picked from commit 8ff6339365)
2024-02-09 14:27:43 -05:00
iam 3a18235679 More aggressive lighting delay, resend neighbour lighting data after chunk generation (#16)
(cherry picked from commit 9c6cb1796c)
2024-02-09 14:27:43 -05:00
iam 912fb34f17 hollow-cube/lighting (#13)
* Lighting

* Remove invalidate

* Private

* Fix chunk loading

* Small fixes

* Fix loading light from anvil world

* Fix solid

* Temporary

* Fix tests, add seagrass and tall seagrass to diffusion list

* Make test faster, replace hephaistos

* Cleanup

* Assume failed test

* Fix chunk not getting invalidated

(cherry picked from commit f13a7b49fa)
2024-02-09 14:27:43 -05:00