Moritz Zwerger
022db56532
pixlyzer tests: cache data
...
A lot faster
2025-11-11 19:32:20 +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
Moritz Zwerger
bb54582b2d
improve profiling, option to dump long frames
2025-11-11 18:46:44 +01:00
Moritz Zwerger
cc0b253b89
fix tests
2025-11-11 18:46:44 +01:00
Moritz Zwerger
c311443884
wip port to kutil 1.30
2025-11-11 18:46:38 +01:00
Moritz Zwerger
8f18a0003f
tests that culling is enabled
2025-11-10 22:37:46 +01:00
Moritz Zwerger
cd94d53c32
greatly simplify frustum culling
...
This is way cleaner and a lot faster
2025-11-10 22:37:43 +01:00
Moritz Zwerger
d558d0b528
occlusion tracer: cache frustum properly
...
This MASSIVELY reduces the frustum calls and should reduce lag spikes a lot
2025-11-10 22:37:41 +01:00
Moritz Zwerger
90d2f13d94
split frustum
2025-11-10 22:37:35 +01:00
Moritz Zwerger
c25b4f5417
session loading: use unconditional worker
...
Overkill and potentially slower
2025-11-09 15:55:49 +01:00
Moritz Zwerger
37117dacdd
replace "minecraft:xx".toResourceLocation() with just minecraft(xx)`
...
A lot of search and replace, but looks far better in code. **Might** probably be lower on memory, because the minecraft string is a constant now.
2025-11-09 15:40:09 +01:00
Moritz Zwerger
d5dad20ee3
section management: fix wrong lowest/highest setting
2025-11-09 15:19:18 +01:00
Moritz Zwerger
c7d9702496
Revert "occlusion tracing: skip if section (and neighbours) is above maximum"
...
This reverts commit cbb31928c8 .
2025-11-09 15:18:06 +01:00
Moritz Zwerger
d75fa2f9ec
render loop: remove debug profile code
2025-11-09 15:15:10 +01:00
Moritz Zwerger
5bb222015d
eros: profiles: make path clickable
2025-11-09 15:14:33 +01:00
Moritz Zwerger
e7d904142d
fix world border rendering
2025-11-09 15:14:17 +01:00
Moritz Zwerger
cbb31928c8
occlusion tracing: skip if section (and neighbours) is above maximum
...
They will always be visible (or not visible), but they are empty...so we don't care about them
2025-11-09 14:08:06 +01:00
Moritz Zwerger
bd4de772db
heightmap: use cached lowest section
2025-11-09 13:57:51 +01:00
Moritz Zwerger
aa4344b24c
chunk section management: provide lowest and highest section
2025-11-09 13:57:51 +01:00
Moritz Zwerger
adf12df09a
spawn egg item: cache field
...
minor performance improvement
2025-11-09 13:56:42 +01:00
Moritz Zwerger
ec46485ce3
chunk light: only loop through valid sections when updating heightmap
...
Otherwise it would loop in some cases from -2^32 to the current section which is SUPER slow. Tests took twice as long to compelte
2025-11-09 13:44:41 +01:00
Moritz Zwerger
be86147d51
tests: cache registries always
2025-11-09 12:59:35 +01:00
Moritz Zwerger
d5afb2691f
javafx: inline runLater
...
If it is the same thread, there is no need to allocate a runnable
2025-11-09 00:20:46 +01:00
Moritz Zwerger
70543813ab
skeletal: fix keyframe deserialization
2025-11-09 00:19:26 +01:00
Moritz Zwerger
aee068ab94
occlusion tests: work on queue
2025-11-08 18:31:26 +01:00
Moritz Zwerger
f242b3c6a7
occlusion tracer: actually use queue
...
Forgot to commit those lines...
2025-11-08 18:30:47 +01:00
Moritz Zwerger
60d766d940
occlusion manager: calculate up to 10 on rendering thread
...
Delaying everything is not the best idea, it introduces delays when changing blocks, that might feel weird.
This is not ideal either, the free slots are first come first serve, that might still introduces delays when a lot of blocks (and the occlusion state) changes.
2025-11-08 18:29:53 +01:00
Moritz Zwerger
2c4d0920ad
section occlusion: queue calculation when invalid instead of calculating
...
Calculating all occlusion can be quite expensive on the rendering thread, if the data is not available (and not instant calculatable), queue it and wait for the next frame to check it again.
This massively reduces lag spikes
2025-11-08 18:09:51 +01:00
Moritz Zwerger
d8684d7d81
network: entity destroy fix ConcurrentModificationException
2025-11-08 17:55:55 +01:00
Moritz Zwerger
081fd10703
opengl: load static library async
2025-11-08 17:00:22 +01:00
Moritz Zwerger
ae578a088e
resource location: minor cleanup
...
**Probably** also improves performance, checking for Identified (interface) is kinda slow.
2025-11-08 16:47:41 +01:00
Moritz Zwerger
bfd700f84a
don't iterate over boxed IntIterator
...
Otherwise an Integer is always allocated, that is simply not needed.
2025-11-08 16:47:13 +01:00
Moritz Zwerger
5c5d87c98b
fix entity solid section mesher test
2025-11-08 15:39:51 +01:00
Moritz Zwerger
7080c90eb8
soul sand tests, only use solid_render if loading from pixlyzer
2025-11-08 15:28:08 +01:00
Moritz Zwerger
b089fac17d
cache more block state flags
...
Makes physics (and more) a bit faster. Interface instanceof is slow as hell...
2025-11-08 14:55:25 +01:00
Moritz Zwerger
70ec9b1548
fix block state tests
2025-11-08 14:42:27 +01:00
Moritz Zwerger
2810bddb2e
refactor block states
...
This is way cleaner (and faster!). BlockStateFlags are cached per block (they are kinda expensive to calculate) and a lot was cleaned up
2025-11-08 14:25:37 +01:00
Moritz Zwerger
25ff704d9d
account capabilities
...
Small cleanup
2025-11-08 13:05:26 +01:00
Moritz Zwerger
68368c63a7
fix world render pipeline tests
2025-11-08 13:04:11 +01:00
Moritz Zwerger
f29bb4ca46
rename all resourceLocation appearances
...
identifier sounds much more natural and meaningful (despite being a resource location)
2025-11-07 17:34:19 +01:00
Moritz Zwerger
d8be7543a2
animation: store progress as float
...
No need to convert anything to doubious fixed point formats
2025-11-07 17:29:30 +01:00
Moritz Zwerger
f9191f55d1
vendor defines: prefix with VENDOR_ instead of __
...
`__` is reserved in glsl and might lead to problems.
2025-11-07 15:05:13 +01:00
Moritz Zwerger
28ba3218b8
wip frame profiling
2025-11-07 15:01:17 +01:00
Moritz Zwerger
c76addff95
block mesher: entity replacing
2025-11-06 21:12:56 +01:00
Moritz Zwerger
a911744134
proper block entity cache + tests
2025-11-06 00:14:10 +01:00
Moritz Zwerger
6650d08aff
chunk meshing: retrieve block entity cache and reuse it
2025-11-05 18:32:41 +01:00