5784 Commits
Author SHA1 Message Date
Moritz Zwerger f2b8e3c955 test simd4 matrix operations 2025-11-13 21:15:02 +01:00
Moritz Zwerger 7f7478b18f mat: fix transpose assign 2025-11-13 15:10:51 +01:00
Moritz Zwerger 51bcef1785 readme: note that java17+ is required for building 2025-11-13 15:10:51 +01:00
Moritz Zwerger 8bb57009f9 readme: add avx and java17 as requirement 2025-11-13 15:10:51 +01:00
Moritz Zwerger c8db33db41 fix matrix multiplication, add test 2025-11-13 15:10:51 +01:00
Moritz Zwerger 5c19f6d0a3 mat4: avx512 multiplication 2025-11-13 15:10:50 +01:00
Moritz Zwerger 589bad5ed8 wip simd matrix multiplication 2025-11-13 15:10:50 +01:00
Moritz Zwerger cab9c2cd59 set source compatibility back to 11
SIMD will just be a build dependency
2025-11-13 15:10:50 +01:00
Moritz Zwerger fc2e9deeb3 improve simd frustum culling 2025-11-13 15:10:50 +01:00
Moritz Zwerger bf13a49728 improve frustum culling performance more 2025-11-13 15:10:50 +01:00
Moritz Zwerger 85e6116877 simd frustum culling 2025-11-13 15:10:49 +01:00
Moritz Zwerger 267d402e30 split frustum in scalar and simd 2025-11-13 15:10:49 +01:00
Moritz Zwerger a25ade632a warn if simd is disabled (or jdk does not support it) 2025-11-13 15:10:47 +01:00
Moritz Zwerger ecef003e7c set jvm target to 17
This allows us to use the vector api
2025-11-13 15:10:35 +01:00
Moritz Zwerger 1d5b2cf248 ci: build with java 17 2025-11-13 15:10:05 +01:00
Moritz Zwerger 26328b86fa chunk manger: only calculate light once
This should be a LOT faster now, all the lag stuttering is gone
2025-11-13 14:45:23 +01:00
Moritz Zwerger f0385adbdf test biomes 2025-11-13 14:44:57 +01:00
Moritz Zwerger 78a9dde8c0 chunk manager: calculate light async
The chunk renderer set the neighbours for the chunk (locked) and calculated the light during that time. That was really causing lag stuttering and took way too long.

Now it is async, but there is still some smell, the light is calculated 8x instead of just once. Not sure why. To be investigated.
2025-11-13 00:13:05 +01:00
Moritz Zwerger 21a1d57516 section light: don't lock chunk
Might lead to deadlocks and is really not needed at all, worst case would be a race to the same data.
2025-11-13 00:13:05 +01:00
Moritz Zwerger 0465aa41d8 water filled blocks: fix wrong light property 2025-11-13 00:13:05 +01:00
Moritz Zwerger 8d7e4f848c chunk manager: fix potential deadlock when unloading chunks
Neighbours are updated when unloading the chunk while the world lock is held. Meanwhile it is possible to tick, which holds the chunk lock and that somehow leads to a deadlock.
2025-11-13 00:13:05 +01:00
Moritz Zwerger e954defde5 chunk blocks: cache how many entity blocks are available
Then we don't need to uselessly scan when updating block entities
2025-11-13 00:13:05 +01:00
Moritz Zwerger f004910583 chunk queue: force unload if neighbours unavailable 2025-11-13 00:13:04 +01:00
Moritz Zwerger 9a3c58d97b ambient occlusion: fix wrong side flipping on east at chunk border
Edge case, did not notice it
2025-11-13 00:13:04 +01:00
Moritz Zwerger 9c8e3e1b3e ambient occlusion: use full opaque cache 2025-11-13 00:13:04 +01:00
Moritz Zwerger ca1d9f6f45 lots of (test) fixes 2025-11-13 00:13:04 +01:00
Moritz Zwerger 05509269bc cleanup opaque, transparent, outlined, full, collidable block
This is now way less goofy, more to follow...
2025-11-13 00:13:04 +01:00
Moritz Zwerger fa144004f9 aabb: remove float constructor
Physics work with doubles, no need to convert datatypes
2025-11-13 00:13:03 +01:00
Moritz Zwerger 6e7e5d1057 use more block flags 2025-11-13 00:13:03 +01:00
Moritz Zwerger 97c8bc0606 solid mesher: don't render if all blocks around it are full opaque
It will always be invisible, so don't even bother retrieving blocks or neighbours and do all the culling (same result). This is an edge case, but it is very likely in worlds.
2025-11-13 00:13:03 +01:00
Moritz Zwerger 18474ed578 more occlusion tests 2025-11-13 00:13:03 +01:00
Moritz Zwerger fed7a149c3 some occlusion test improvements 2025-11-13 00:13:03 +01:00
Moritz Zwerger 148b32508d section occlusion: cache full opaque as bit set 2025-11-13 00:13:03 +01:00
Moritz Zwerger 0238779bb5 improve section occlusion 2025-11-13 00:13:02 +01:00
Moritz Zwerger e825ab7078 integration tests: don't load data if not neeeded (blocks) 2025-11-13 00:13:02 +01:00
Moritz Zwerger bae0f5b116 occlusion tracer: use IntInlineSet for side regions
The overhead of them is so much smaller and checking the side regions is also just a binary operation. So much faster and cleaner.
2025-11-13 00:13:02 +01:00
Moritz Zwerger c7d8cde40d section occlusion tracer: use byte array with fixed region ids
Dynamic ids are really not needed, they can be totally fixed (by the side where the tracing started). Then same side regions are automatically merged to one (this will make the checking a lot easier)
2025-11-13 00:13:02 +01:00
Moritz Zwerger 0eb9c6926d registry items: remove overloading equals, hashCode and toString methods
They are provided by the base class, no need for them
2025-11-12 23:59:14 +01:00
Moritz Zwerger 01bf405bf3 integration tests: crash instantly if setup fails 2025-11-12 23:59:05 +01:00
Moritz Zwerger b8cbf80704 more java11 fixes 2025-11-12 23:58:25 +01:00
Moritz Zwerger a96799b4d4 use backports random in range
Otherwise it prefers java 16+ bound int, which behaves differently and it will fail to execute on java 11.
2025-11-12 23:58:20 +01:00
Moritz Zwerger e8e174abba entity position info: don't lock world
That is super slow
2025-11-12 23:58:11 +01:00
Moritz Zwerger 022db56532 pixlyzer tests: cache data
A lot faster
2025-11-11 19:32:20 +01:00
Moritz Zwerger 4bcb991646 integration test: allow 2G heap
Heap is capped rn at 512MB and with all the registry caches this is really not enough.
2025-11-11 19:31:59 +01:00
Moritz Zwerger df6d2e23ab buildscript: bump kutil: 1.30 2025-11-11 18:49:13 +01:00
Moritz Zwerger 2e8049620d render loop: clear profiler when finishing it
Otherwise calls after the rendering loop (i.e. unloading) crash
2025-11-11 18:46:45 +01:00
Moritz Zwerger 699e8c51b9 more profiling 2025-11-11 18:46:45 +01:00
Moritz Zwerger e605110ed1 rendering thread pool, fine tune some blocking values 2025-11-11 18:46:44 +01:00
Moritz Zwerger e733cc6654 rendering: nullable profiler 2025-11-11 18:46:44 +01:00
Moritz Zwerger f7cd2d7f05 more profiling 2025-11-11 18:46:44 +01:00