Moritz Zwerger
d1a5b5714f
rendering: reduce some unneeded memory allocations
2025-10-29 00:14:49 +01:00
Moritz Zwerger
d1d8f6367d
disable opengl error polling
...
Only for debugging
2025-10-29 00:04:50 +01:00
Moritz Zwerger
6db1b77ecc
gui: fix wrong cache estimation
2025-10-29 00:04:37 +01:00
Moritz Zwerger
2a5f2b4cc5
uniform buffers: remove binding index
...
OpenGL specific
2025-10-28 23:48:06 +01:00
Moritz Zwerger
45644b3e3a
cleanup some mesh builders
2025-10-28 23:28:55 +01:00
Moritz Zwerger
8d8305b458
increase uv precision correction
...
Packed UV only works in steps of 1/(2^12)
2025-10-28 20:29:34 +01:00
Moritz Zwerger
4a2f7c6702
fix standing sign rotation
2025-10-28 20:14:22 +01:00
Moritz Zwerger
deac8fe6b2
durability: ignore if maxDurability is 0
2025-10-28 20:09:38 +01:00
Moritz Zwerger
e8eeeaad8b
particles: don't fetch light initially
...
That might cause deadlocks
2025-10-28 20:09:10 +01:00
Moritz Zwerger
f41b6969cb
sign: test 1.12.2 nbt
...
Won't work anyways, legacy block does create a sign
2025-10-28 19:11:30 +01:00
Moritz Zwerger
e5e0524dbc
billboard text mesh: scale properly
2025-10-28 18:56:21 +01:00
Moritz Zwerger
e6bc12c87d
block model gui rendering
2025-10-28 18:41:27 +01:00
Moritz Zwerger
6d169c01b7
gui meshes: clear data before rendering
2025-10-28 18:23:21 +01:00
Moritz Zwerger
81a2130d6c
float list: fix batch add 5 floats
2025-10-28 18:22:30 +01:00
Moritz Zwerger
e5bc695e87
durable item: only set durability if item is actual durable (legacy meta)
2025-10-28 17:58:34 +01:00
Moritz Zwerger
1e3be68acb
option to disable native memory
...
This is incomplete, native memory is still used for sound data, internals of lwjgl and glfw
2025-10-28 17:13:20 +01:00
Moritz Zwerger
0db68d7b9b
fix tests
2025-10-28 16:47:39 +01:00
Moritz Zwerger
522e5299d9
refactor char/gui vertex consumer
...
Several things are broken:
- font rendering (line above o?) fix uv start?
- fading text in hotbar
- rendering of items in gui
- items on ground
- probably more
2025-10-28 16:36:26 +01:00
Moritz Zwerger
f6c698277e
render system: list of supported primitive types
2025-10-28 14:53:06 +01:00
Moritz Zwerger
21e1d44a11
cleanup some mesh builders and block vertex consumer
2025-10-28 14:19:33 +01:00
Moritz Zwerger
286788b09f
opengl: uniform buffers: use GL_STREAM_DRAW
...
Just a hint to the driver, but the description of the spec matches this one more
2025-10-27 17:40:52 +01:00
Moritz Zwerger
6ac7551b4e
allocation rate: measure every second
...
Otherwise the values jump up and down and really don't make sense
2025-10-27 17:39:59 +01:00
Moritz Zwerger
c41861dad2
opengl buffer: don't allocate Int
2025-10-27 17:09:24 +01:00
Moritz Zwerger
5007c9a6a8
tint manager: only get biome when block is tinted
...
Looking up (even though its cached as hell) biomes with the voroni noise accessor is quite expensive, only do it if it is "really" needed
2025-10-27 16:54:02 +01:00
Moritz Zwerger
2d60a6f2b0
block state: cache tinted
2025-10-27 16:53:02 +01:00
Moritz Zwerger
d552935a3f
cleanup some chunk meshing
2025-10-27 16:39:46 +01:00
Moritz Zwerger
dd25d6cc8b
chunk meshing: fix dropping wrongly
...
That got messed up recently caused chunks to get lost in the rendering pipeline
2025-10-27 16:19:39 +01:00
Moritz Zwerger
866b3bf7b7
block gui: fix perspective
2025-10-27 15:55:07 +01:00
Moritz Zwerger
d5edf2d399
chunk meshing: don't loose sections if neighbours are not set
2025-10-27 15:48:55 +01:00
Moritz Zwerger
2b92517f94
network: properly ignore chunk light
2025-10-27 15:19:48 +01:00
Moritz Zwerger
984a05af00
network: fix light packet reading
2025-10-27 15:19:35 +01:00
Moritz Zwerger
b2018ab0e1
hud: force reupload cache
...
I don't give a crap about that sytem anymore...
2025-10-27 15:14:03 +01:00
Moritz Zwerger
13abe9c095
text rendering: TextRenderResults
...
This boolean is so ambiguous, there were two comments needed to "clear" it up.
2025-10-27 14:55:56 +01:00
Moritz Zwerger
a724840bd7
local connection: redirect chat messages to chat
...
Chat messages will be displayed in the chat (with color codes)
2025-10-27 14:44:11 +01:00
Moritz Zwerger
3f2c645c8a
gui: invalidate cache on clear
...
Otherwise the elements (e.g. Wawla) that drew nothing never were hidden again
2025-10-27 14:39:20 +01:00
Moritz Zwerger
c4774f2c67
fix tests
2025-10-27 13:45:00 +01:00
Moritz Zwerger
c50b27b92e
fix gui index buffers
...
It also greatly optimizes them, they are always the same
2025-10-27 13:05:13 +01:00
Moritz Zwerger
6829f24c3d
actual index buffers (part 2)
...
Render order semi came back, but it is fully inlined and static
2025-10-27 12:31:46 +01:00
Moritz Zwerger
bcd2598e0d
wip remove render order (part 1)
2025-10-26 22:39:32 +01:00
Moritz Zwerger
dea2d1c2ef
actual index buffers
2025-10-26 22:04:29 +01:00
Moritz Zwerger
155be558da
meshes: use modern quad order by default
2025-10-26 21:36:35 +01:00
Moritz Zwerger
cfadb4f32b
int lists
2025-10-26 21:33:06 +01:00
Moritz Zwerger
6bfd559220
profiles: print what profile failed to load
2025-10-26 21:10:48 +01:00
Moritz Zwerger
ad772c763a
direct rendering: prefer buffered float list
2025-10-26 20:56:49 +01:00
Moritz Zwerger
27a7f34f31
crosshair element: fix memory leak
2025-10-26 20:56:30 +01:00
Moritz Zwerger
3c7b4889fe
direct rendering (unfreeable buffers)
2025-10-26 20:56:08 +01:00
Moritz Zwerger
743a49f5fb
mesh builder: drop mesh without initializing lazy data
...
No need to allocate and directly drop it
2025-10-26 20:27:34 +01:00
Moritz Zwerger
330463fb1c
meshes: only free data if native unsafe buffer is unavailable
2025-10-26 20:11:47 +01:00
Moritz Zwerger
645be31a1c
float lists: prefer realloc over fragmented
...
Way faster :)
2025-10-26 20:09:16 +01:00
Moritz Zwerger
a743f2ef98
chunk meshes: use better vertex count approximation
...
I plotted all the values on a normal world and calculated pretty much the median for these regions
2025-10-26 20:08:08 +01:00