Darren Eberly
93b03847df
Only use BatchedFontRenderer when not in a display list compilation ( #174 )
2024-01-09 09:28:31 -05:00
Darren Eberly and Jason Mitchell
85e44369bb
Handle state changes for display lists correctly in GLSM ( #168 )
...
* Handle state changes in display lists correctly in GLSM
* Add some documentation so it's slightly more clear as to what's happening
---------
Co-authored-by: Jason Mitchell <[email protected] >
2024-01-08 21:48:15 +00:00
embeddedt
97152a6ace
Clear event phase before reusing object ( #170 )
2024-01-08 16:11:35 -05:00
Jason Mitchell
45b20efc45
Change where the offset is reset ( #159 )
...
* Change where the offset is reset
* Debug log and rm dead code
2024-01-07 18:58:48 -08:00
Mist475
869f843e3e
turn sortAndRender redirect into WrapOperation
2024-01-07 09:56:29 -08:00
Jason Mitchell
ad533bcae9
Don't remap, and throw early
2024-01-06 20:50:49 -08:00
Jason Mitchell
b100652a7d
Fix VBO crash ( #151 )
...
* Fix VBO crash
* Use integer.min_value for VBOized display list IDs, and prevent a NPE when trying to delete a VBOized display list
* Offset when accessing the vertexBuffers list
* DragonAPI compat - Only run checkSettings when the world is loaded
2024-01-07 03:30:28 +00:00
Darren Eberly
d497c301c9
Fix for GUI lighting states ( #148 )
...
* Fix for GUI lighting states
* Lighting fix after RenderTickEvent because mods love to abuse it
* Remove unnecessary glEnable
* Remove unused import
2024-01-06 17:47:58 -08:00
embeddedt
17dddb6691
Rebuild chunk graph if fog distance changes
2024-01-06 17:47:16 -08:00
embeddedt
818f4d3cca
Reload renderer if view distance changes
...
Backport from Sodium 0.3
2024-01-06 17:47:16 -08:00
embeddedt
9141137606
Avoid constructing ChunkMeshData for unused passes
2024-01-06 17:47:16 -08:00
embeddedt
9b6e781a7c
Propagate exceptions on meshing thread to main thread for unimportant builds
2024-01-06 17:47:16 -08:00
embeddedt
8229ed9aa0
Prevent sorts from replacing rebuilds for a section
2024-01-06 17:47:16 -08:00
embeddedt
71ea27ee3a
Apply epsilons to block face culling checks
...
Inspired by https://github.com/CaffeineMC/sodium-fabric/commit/c344269368d6ea04d8f9affd1d6aec287aec09c2
The change also makes sense, because block geometry can extend
some distance out of a chunk's strict bounds
2024-01-06 17:47:16 -08:00
Jason Mitchell
f760a3e011
Store state changes generated during a display list, and apply them after calling the display list
2024-01-06 17:46:08 -08:00
embeddedt
14c09770eb
Integrate Sodium animation system with Angelica's ( #147 )
2024-01-06 18:46:59 -05:00
Jason Mitchell
a0646456d3
So binding a texture in a display list compile won't change it, but it'll capture the change..... ( #146 )
...
* So binding a texture in a display list compile won't change it, but it'll capture the change.....
2024-01-06 22:43:53 +00:00
Jason Mitchell
b0828fb96a
Make sure the correct discard/reset is being called ( #144 )
...
* Make sure the correct discard/reset is being called
2024-01-06 12:16:35 -08:00
Jason Mitchell
369893cfa3
Set the hasXXX flags so quads get generated properly ( #139 )
...
* Set the hasXXX flags so quads get generated properly
* Add forge to credits
* Change remapping for MixinRenderGlobal
2024-01-06 01:52:25 -05:00
embeddedt
a96a973d44
More TESR fixes, make VBO mixins toggleable
2024-01-05 19:45:53 -08:00
embeddedt
2c767f2970
Use ConcurrentHashMap to store tile entity renderers
2024-01-05 19:45:53 -08:00
makamys
a16ed9460a
Fix Camera#blockPos rounding and apply third person offset ( #137 )
...
Fixes translucent chunk sorting being off near chunk boundaries.
2024-01-05 19:24:23 -05:00
Jason Mitchell
921545ca1f
Add archaicfix version requirement, if present ( #136 )
2024-01-05 22:42:10 +00:00
Jason Mitchell
717c918bd4
VBO Clouds ( #135 )
...
* Backport VBO Clouds from Forge 1.12
* Add a 1.12+ style tessellator/buffer builder API to CapturingTessellator
* Update VBOManager to handle adding items out of order, and switch to ObjectArrayList
2024-01-05 14:38:51 -08:00
mist475
98b707e3e3
MCPF config/mixins cleanup ( #130 )
...
* cleanup ctm/ cc mixins
* use @Share more
* migrate to forge based config
2024-01-04 19:25:57 -08:00
MrSlimeDude
73c7ca94e1
Fix drawString returing wrong value with 0 length string
2024-01-04 19:25:06 -08:00
Jason Mitchell
cf3cfd806f
VBO Manager
...
* Add a VBO manager
* Stop allocating display lists for the vanilla chunk renderer when sodium is enabled
* Move RenderGlobal * ModelRenderer to VBO Manager
* Stop preventing display list allocation for displayListEntities
2024-01-04 19:24:00 -08:00
Jason Mitchell
c58870fdeb
DisplayList -> VBO for stars, skies, and ModelRenderer ( #129 )
2024-01-04 10:49:27 -05:00
embeddedt
a8ccc8903a
Performance & allocation rate optimizations ( #128 )
2024-01-03 22:35:05 -05:00
embeddedt
adb582cd1e
Fix chunk updates not unparking main thread upon completion ( #127 )
2024-01-03 17:20:06 -05:00
Jason Mitchell
364f3a9c00
meh - fix silly (this or do math)
2024-01-03 13:45:16 -08:00
Jason Mitchell
c19c812c10
Remove tessellator to buffer ( #123 )
...
* Update buildscript
* Swap out uploading a tesselator and tesselatorToBuffer with a Capturing Tesselator
2024-01-03 13:22:52 -08:00
makamys
0460f6dbcd
Quad cleanup ( #124 )
...
* Remove useless code from Quad
* Remove unnecessary resetting
* Reorder fields to follow tessellator layout
* Fix flags getting ored instead of assigned
2024-01-03 12:57:13 -08:00
Jason Mitchell
4fabe45ae7
CapturingTessellator and VBO support ( #120 )
...
* Adds a CapturingTessellator
* VBO support
* Remove some silly badly translated Iris vertex implementation from HFPModelVertexType
* Support Normals
* Move normal rendering to the CapturingTessellator, and remove off thread non-capturing tessellators
* Add quad writer support to VertexFormat
2024-01-03 11:34:11 -08:00
mist475
ab54359f03
fix sodium fluid renderer not using biome colors ( #122 )
...
* fix sodium fluid renderer not using biome colors
2024-01-03 16:11:46 +01:00
Jason Mitchell
0c9ec5b23a
Defer chunk updates by default
...
* At least until we can figure out the cause of the stuttering with them enabled
2023-12-30 15:56:56 -08:00
Darren Eberly
20ae68aa62
Re-enable lighting after rendering Thaumcraft aspects
2023-12-30 15:02:29 -08:00
Jason Mitchell
46164ebac7
Normalize Rotation vector
...
Also add cache bypass to matrix caching
2023-12-30 14:12:45 -08:00
Jason Mitchell
de0a600163
Only enable threaded block transformations when sodium is enabled
2023-12-30 13:24:40 -08:00
Jason Mitchell
956f9e344e
Update the tesselator checks to allow for non main instance tesselators while still on the main thread ( #106 )
2023-12-30 13:00:59 -08:00
Darren Eberly
acc1f58778
Round texture coordinates instead of truncating ( #105 )
...
Backported fix from embeddium: https://github.com/embeddedt/embeddium/commit/a82950cf8e77ce78d9c3dacbfa509900f3a224ca
2023-12-30 12:25:33 -08:00
Caedis
1a38bd1a00
Move mod checks to their own static class ( #103 )
2023-12-30 13:21:58 -06:00
mist475
446c8e74ee
replace lotr blockrendering hashmap with concurrent version ( #98 )
2023-12-30 10:39:34 -08:00
FalsePattern and Darren Eberly
74cdc561e6
Preliminary ChunkAPI/EndlessIDs compatibility ( #94 )
...
* Preliminary ChunkAPI compatibility
* endlessids biome array crash fix
* Ensure skylight array is not null when hasSky is set
---------
Co-authored-by: Darren Eberly <[email protected] >
2023-12-30 10:26:03 -08:00
Caedis
67fbcc8ff0
Add debug logging option ( #97 )
...
* add debug logging option
* remove the deobf check
2023-12-29 01:54:58 -06:00
Jason Mitchell
d19b8d5302
Handle bad matrix modes ( #93 )
...
* Handle common incorrect modes for glMatrixMode
* Handle matrix stack over/under flow
2023-12-28 21:05:11 -05:00
embeddedt
7d7d73a48f
Fix constant pool parser early-exiting instead of checking all strings ( #90 )
...
Use a helper variable instead of the label-break pattern, the latter
is ugly and error-prone, in my opinion
2023-12-28 13:21:00 -08:00
Jason Mitchell and embeddedt
21b9b8cb3f
Dynamic cstPoolParser ( #89 )
...
* Dynamic cats... err cstPoolParser
* Prevent block classes that redeclare vanilla fields from being redirected
* Obviously blocks don't shadow their own fields
---------
Co-authored-by: embeddedt <[email protected] >
2023-12-28 09:08:49 -08:00
Jason Mitchell
fc520de642
Dirty no more
2023-12-28 08:20:08 -08:00
Jason Mitchell
9916075569
Catch the specific error, rather than generic Exception (which the error doesn't seem to subclass anyway) ( #88 )
2023-12-28 08:15:50 -08:00