Jozufozu
179eafecd3
Go through GlVertexArray
...
- VAO state is now handled by GlVertexArray objects
- IndexedModel no longer inherits from VBOModel
- BufferedModel doesn't need #clearState
- Likely fixes crash on intel drivers
2021-12-27 19:14:19 -08:00
Jozufozu
78030b2f40
Fix contraption lighting
...
- Actually just one line.
2021-12-27 13:37:09 -08:00
Jozufozu
47e3aaa290
Towards starlight compat
...
- Steal Mods enum from Create.
- Cursemaven dep for starlight
Co-authored-by: Aeiou <3160746+aeiouenigma@users.noreply.github.com>
2021-12-26 15:41:20 -08:00
Jozufozu
c153995121
No more diffuse divide
...
- Move PlacementSimulationWorld to Flywheel as VirtualRenderWorld
- Simplify ModelTransformer
- Model doesn't need #configure
2021-12-25 15:51:22 -08:00
PepperCode1
1e9e4e0054
Clean up
...
- Use Flywheel.rl and Flywheel.ID where ever possible
- Rename Flywheel.log to LOGGER
- Don't add namespace to network channel version
- Use counter for packet IDs
2021-12-24 23:26:18 -08:00
Jozufozu
c268b9cc9b
Track VBO and EBO via vanilla
2021-12-24 16:15:20 -08:00
Jozufozu
6c40b8be0b
Repack JOML
2021-12-24 02:21:59 -08:00
Jozufozu
f4cdbb73f7
Fix GL error spam and do some cleanup
...
- Add flywheel$ prefix to mixin duck interfaces/accessors
- Better chat messages for /flywheel backend command
- Track VAO via vanilla
2021-12-24 01:45:38 -08:00
Jozufozu
1377732df4
Merge branch '1.18/dev' into 1.18/batching
2021-12-23 23:23:04 -08:00
Jozufozu
4d5391f5dc
Contraptions and engines
...
- Sort of get the batching engine working for contraptions but this feels wrong
- TaskEngine gets passed in methods
- Better naming for TaskEngines
- Do BufferSource ourselves
- Change BufferBuilderMixin to allow for injection into BufferBuilder objects
2021-12-23 23:22:52 -08:00
Jozufozu
082fe8cdd8
Switch back to parchment, update forge
2021-12-23 23:09:51 -08:00
Jozufozu
5cca71332d
Bump version - 0.5.0
2021-12-22 22:37:27 -08:00
Jozufozu
7c1de5c06a
Small config changes
...
- Make FlwCommands more readable
- EmptyArgumentSerializer for EngineArgument
2021-12-22 22:29:52 -08:00
Jozufozu
dc5382b658
Fix models being backwards
...
- Regression in ModelUtil#rotateToFace
2021-12-22 22:01:05 -08:00
Jozufozu
ee2b418ef7
Better config/backend to account for multiple engines
...
- Rename probably too many things
- Needs to be tested with Optifine
2021-12-22 21:35:48 -08:00
Jozufozu
99a50631cb
Fix diffuse lighting in batching engine
...
- Complete hack that definitely won't come back to bite me
- Also slighting change some unsafe writing stuff
2021-12-22 16:11:56 -08:00
Jozufozu
80d41a76af
GlBuffer tracks its size
...
- GlVertexArray#enableArrays
2021-12-22 14:39:34 -08:00
Jozufozu
ede2ba8776
Finally safe vertex formats
...
- true to false for Pepper
- IBufferedModel -> BufferedModel
- VertexFormat -> BufferLayout
- Use ImmutableList in BufferLayout
- LayoutItem naming consistency
- Try to reduce usage of raw BufferLayouts
- Move vertex interfaces to api package
- #createWriter and #createReader in VertexType
- Some documentation
2021-12-22 02:45:45 -08:00
Jozufozu
42365def02
util and core cleanup
...
- Consolidate/audit utility classes
- Move more towards sane vertex types
2021-12-22 00:22:41 -08:00
Jozufozu
4f31fa3e9c
Make the BatchingEngine not jittery
...
- Stop having threads compete for a single BufferBuilder
- ...by skirting around minecraft's BufferSource
- Begin work on making vertex writing sane
2021-12-21 22:47:29 -08:00
Jozufozu
dc0ba5214b
Merge branch '1.18/dev' into 1.18/batching
...
# Conflicts:
# src/main/java/com/jozufozu/flywheel/core/model/BlockModel.java
2021-12-21 01:12:47 -08:00
Jozufozu
4908abc9e0
StructType doesn't need #asBatched and #asInstanced
...
- More organized this way
- BatchingTransformer function moved into Batched
2021-12-20 22:38:33 -08:00
PepperCode1
3e8644c988
Improve virtual model rendering
...
- Use VirtualEmptyBlockGetter instead of mc.level
- Move getBufferBuilder from BlockModel to ModelUtil
- Add static .is method to VirtualEmptyModelData
2021-12-20 17:47:30 -08:00
Jozufozu
a43fe2bc9a
No need for getDirtyBitSet
...
- Faster and simpler to just do one loop
2021-12-17 22:41:22 -08:00
Jozufozu
ffe17e4449
Use task engine/sync to update instances
2021-12-17 02:17:39 -08:00
Jozufozu
f651676dea
Proper task engine
...
- Manual threadpool
- More control
2021-12-17 01:03:52 -08:00
Jozufozu
431ff92861
Simplify SBB
...
- SBB -> ModelTransformer
- Shader binding the minecraft way
- Engines are responsible for ending batches
2021-12-16 23:10:24 -08:00
Jozufozu
be3f47dfbd
Naive parallelism
...
- Submit many tasks to executor and then wait for them all to complete.
- Use WaitGroup
- SBB no longer stores params, instead accepts Params arg to render
- SBB keeps scratch variables local
- CPUInstancer keeps track of default params
- Separate #setup and #draw... functions in CPUInstancer
- Combine DirectBufferBuilder#updateAfterWriting with #intoDirectConsumer
- DirectVertexConsumer#split to distribute work
2021-12-16 10:49:26 -08:00
Jozufozu
3767390c96
Better SBB params
...
- Transform interface for grouping traits and combined behavior
- Move transforms to params, impl Transform
- Pass Params object to BatchingTransformers instead of SBB
2021-12-16 00:11:47 -08:00
Jozufozu
cc707cf66a
Batching Engine
...
- Implement alternate backend using SBBs
2021-12-15 17:12:48 -08:00
Jozufozu
249ec5e5e5
Bump version 0.4.2-rc
...
- rc so Create 0.4a can still be compatible
- also still not sure if the accessor bug is fixed
2021-12-15 16:52:58 -08:00
Jozufozu
15ea38ede7
Possible fix(es) for accessor crash
...
- Haven't been able to reproduce
- Try forcing PausedPartialTickAccessor to load early
- Try renaming the method
2021-12-15 16:19:52 -08:00
Jozufozu
cd4d5d1b72
Update forge - 39.0.5
2021-12-15 15:08:06 -08:00
Jozufozu
17fb8d34ed
Fix #extension crash on intel
2021-12-15 13:27:06 -08:00
PepperBell
cb5047f677
Sweeping up
...
- Remove deprecated methods and fields
- Bump pack format
- Fix CI badge link
- Update VanillaInstances javadoc
- Organize imports
2021-12-14 22:00:44 -08:00
Jozufozu
64a7443dde
No need for InstancedMaterialRenderer
...
- Here's to premature abstraction
2021-12-13 21:27:15 -08:00
Jozufozu
d9fd668bbb
AMD driver workaround
...
- Just don't pool models
2021-12-13 19:55:50 -08:00
Jozufozu
d094595f2e
Add GPU field to bug report template
2021-12-13 11:38:32 -08:00
Jozufozu
7cf2741e68
Ready for release
2021-12-12 22:53:22 -08:00
Jozufozu
56150b2645
Fix vanishing minecarts
2021-12-12 22:30:46 -08:00
Jozufozu
a3ee39099a
Use GL_ARB_conservative_depth when possible
...
- Allows the depth test to discard fragments before the fragment shader is run
2021-12-11 22:03:52 -08:00
Jozufozu
46745ae91d
Bump version - 0.4.1
2021-12-11 17:32:39 -08:00
Jozufozu
11e5719e0d
Cylindrical fog
...
- having the world position is very nice
- mojang manages to do multiple matrix multiplications
2021-12-11 17:31:09 -08:00
Jozufozu
3cfbc97dd1
Add issue template
...
- Read: copy issue template from Create
- Thanks, caelwarner!
2021-12-11 15:43:11 -08:00
Jozufozu
ebfeff0b54
Fix misaligned contraption light
...
- That was a pain to debug
- Idk how that ever worked
2021-12-11 15:06:07 -08:00
Jozufozu
79e61b44e5
1.18.1
2021-12-11 14:18:43 -08:00
Jozufozu
2207da5eed
Implemented
2021-12-10 14:50:01 -08:00
Jozufozu
21a23d650f
Mapped buffer sanity
...
- MappedBuffer no longer abstract
- Mappable interface used within MappedBuffer
- MappedBuffer is mapped before ctor
- No more subclasses, no more thin wrapping overrides
- Use try with resources for buffer mapping
- Better error handling with mapped buffers
- Unimplemented exception as a procrastination method
2021-12-10 14:45:18 -08:00
Jozufozu
fd8d436640
Worlds are bigger now pt 2
...
- Stop clamping Y in [0, 256)
2021-12-10 12:31:57 -08:00
Jozufozu
931fffb5f1
Worlds are bigger now
...
- Stop clamping Y in [0, 256)
2021-12-10 00:28:32 -08:00