1895 Commits

Author SHA1 Message Date
Bixilon
4720dbba37
clear chunk cache on minimize, rotate cull face correct, chunk clear key combination 2021-11-17 22:36:33 +01:00
Bixilon
fc2b5a8502
hud: improve memory usage
* Every HUDElement has its own mesh now
 * Reuse existing mesh data (don't allocate new memory)
 * Use Mesh data as cache for layouted elements (not a separate float array)
2021-11-17 21:21:17 +01:00
Bixilon
e2f4170bb8
reuse FloatBuffer in GUIMesh (reduce memory allocations) 2021-11-17 19:48:08 +01:00
Bixilon
66f4f74848
fix bugs in fallback coordinates 2021-11-17 19:17:27 +01:00
Bixilon
63d40dcad7
more tints 2021-11-17 18:57:41 +01:00
Bixilon
73c5829893
wip: tinting 2021-11-17 18:06:12 +01:00
Bixilon
870d2e3cca
improve frustum culling performance, update neighbour chunks, improvements 2021-11-17 14:02:20 +01:00
Bixilon
4a8dc14dd7
fix chunk neighbour detection, fixes 2021-11-17 00:51:36 +01:00
Bixilon
52150ba555
fix some threading bugs, improve a ton of stuff in world renderer 2021-11-16 22:05:42 +01:00
Bixilon
962a97e9fd
store light as ByteArray, other memory improvements 2021-11-16 14:09:15 +01:00
Bixilon
47b620bedc
disable leaves culling, fix some biome bugs, fix block rotation bug, fix uv lock bugs 2021-11-15 22:26:06 +01:00
Bixilon
7344fdda6c
improve thread pool (performance), improve culling performance 2021-11-15 17:45:26 +01:00
Bixilon
ec7ef10add
fix some transparency bugs 2021-11-15 17:10:20 +01:00
Bixilon
f5c9afebae
improve some memory stuff 2021-11-15 16:23:05 +01:00
Bixilon
69bd39bd45
fix fast biomes 2021-11-15 15:56:03 +01:00
Bixilon
2ecf73b82e
fix some more bugs 2021-11-15 15:53:46 +01:00
Bixilon
d2c40a810d
option to disable GL_QUADS 2021-11-15 15:10:20 +01:00
Bixilon
a147fb3c02
integrate world renderer with new chunk format (performance optimizations) 2021-11-15 11:08:43 +01:00
Bixilon
6032900b42
fix some merge bugs, fix some biome bugs 2021-11-15 10:33:14 +01:00
Bixilon
8d99db5376
Merge branch 'master' into world-renderer
# Conflicts:
#	src/main/java/de/bixilon/minosoft/data/registries/tweaker/VersionTweaker.kt
#	src/main/java/de/bixilon/minosoft/data/world/Chunk.kt
#	src/main/java/de/bixilon/minosoft/data/world/World.kt
#	src/main/java/de/bixilon/minosoft/gui/rendering/block/WorldRenderer.kt
#	src/main/java/de/bixilon/minosoft/gui/rendering/block/renderable/block/ElementRenderer.kt
#	src/main/java/de/bixilon/minosoft/gui/rendering/block/renderable/fluid/FluidRenderer.kt
#	src/main/java/de/bixilon/minosoft/gui/rendering/models/baked/block/GreedyBakedBlockModel.kt
#	src/main/java/de/bixilon/minosoft/protocol/packets/s2c/play/ChunkDataS2CP.kt
#	src/main/java/de/bixilon/minosoft/protocol/packets/s2c/play/MassChunkDataS2CP.kt
2021-11-15 10:11:09 +01:00
Bixilon
8bc3325d37 Merge branch 'improved-chunk-format' into 'master'
Improved chunk format

See merge request bixilon/minosoft!26
2021-11-15 09:54:12 +01:00
Bixilon
a896eb0c7c
calculate max position in SectionDataProvider 2021-11-15 09:24:57 +01:00
Bixilon
465e9c4bf0
fix light packet reading (in older versions), fix some chunk bugs 2021-11-15 00:48:59 +01:00
Bixilon
ee02484494
improve block entity handling, fix some bugs, improve performance of fast biomes 2021-11-14 22:22:47 +01:00
Bixilon
20062dc0ea
cache chunks in biome noise cache building 2021-11-14 21:22:41 +01:00
Bixilon
7249367b04
improve performance of some biome stuff, improve performance of new chunk format 2021-11-14 20:49:36 +01:00
Bixilon
74791305f6
fast biomes option 2021-11-14 19:14:24 +01:00
Bixilon
5c3b1f31b8
wip: chunk cache 2021-11-14 18:45:34 +01:00
Bixilon
c265b87e48
fix compatibility with Java < 16 2021-11-14 13:30:39 +01:00
Bixilon
a79eff606c
improve memory usage: ArrayFloatList: replace FloatArray with FloatBuffer 2021-11-14 13:02:44 +01:00
Bixilon
20ca5c1199
render distance, remove particles when out of render distance 2021-11-13 23:41:29 +01:00
Bixilon
168d607c47
models: correct fallback uv coordinates (e.g. for cauldrons) 2021-11-13 20:50:19 +01:00
Bixilon
95c4898f4a
world-rendering: fix some transparent rendering 2021-11-13 20:10:42 +01:00
Bixilon
831fd25444
fix empty chunk data handling, improve multithreading in WorldRenderer 2021-11-13 19:20:03 +01:00
Bixilon
4377b9e2ae
fix empty chunk data handling, improve multithreading in WorldRenderer 2021-11-13 19:08:34 +01:00
Bixilon
611f55fd82
world-renderer: split visible meshes, sort them 2021-11-13 17:58:53 +01:00
Bixilon
dcb058c960
fix spectator collisions, fix some mass block changing bugs, fix culling bugs 2021-11-13 17:22:25 +01:00
Bixilon
4db63f37f5
fix gamemode handling 2021-11-13 16:55:48 +01:00
Bixilon
f1c932a68a
chunk unloading 2021-11-13 16:38:40 +01:00
Bixilon
3fd30c65b0
improve world renderer 2021-11-13 16:06:22 +01:00
Bixilon
d4a562e429
improve light storing format 2021-11-12 22:57:58 +01:00
Bixilon
441b4e9550
SynchronizedMap: Allow multiple reading operations at the same time 2021-11-12 19:11:52 +01:00
Bixilon
86155c8f3f
wip: improved chunk storing format 2021-11-12 18:46:29 +01:00
Bixilon
20c5901fea
wip: world rendering 2021-11-10 23:52:59 +01:00
Bixilon
821a849e25
world-renderer: mesh: calculate max positions (for frustum culling) 2021-11-10 22:42:47 +01:00
Bixilon
8bd1c5ff32
world-renderer: multiple meshes: fix transparency, fix mipmaps 2021-11-10 21:30:16 +01:00
Bixilon
da19cecafd
light: shading 2021-11-10 20:39:07 +01:00
Bixilon
7d501bfc6b
rendering: reduce amount of floats per vertex, improve preparing performance 2021-11-10 19:57:12 +01:00
Bixilon
71ebcab943
Use GL_QUADS, improve world render performance
- Downgrade to OpenGL 3.0 to use GL_QUADS
 - Use GL_QUADS in HUDRenderer and WorldRenderer (improves fps, reduces gpu load, reduces memory usage)
 - Deprecate PrimitiveTypes.QUADS (it is deprecated in OpenGL too)
 - Improve performance in BakedFace
2021-11-10 17:35:38 +01:00
Bixilon
b811a95059
face culling 2021-11-10 16:47:52 +01:00