Backport 1.21.1 optimizations to 1.20.1 #192
Open
+112
−12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
• 已回移植
common/src/main/java/com/xtracr/realcamera/config/BindTarget.java
common/src/main/java/com/xtracr/realcamera/RealCameraCore.java
common/src/main/java/com/xtracr/realcamera/mixin/MixinLevelRenderer.java
common/src/main/java/com/xtracr/realcamera/gui/ModelAnalyser.java
common/src/main/java/com/xtracr/realcamera/config/ModConfig.java
• 未同步
平台/构建与模块迁移(Java 21、NeoForge、Gradle/Loom/Wrapper、CI 与模板)未引入:
新渲染管线与顶点 API(MeshData、ByteBufferBuilder、VertexConsumer.addVertex、FastColor)未回移:(1.20.1 没这些类与接口语义)
渲染循环与 mixin 签名变更(DeltaTracker、modelView/projection、TickRateManager、交互距离、roll 注入)及配置更新未回移:(1.20.1 没有新接口)
Java 21 API/语言特性依赖未回移(Math.clamp、SequencedMap、List.getFirst/removeFirst、record pattern):
经典视角/渲染器签名调整未回移(Z 方向反号、move float、PlayerRendererAccessor 额外缩放参数):
兼容层与渲染重定向差异未回移(TACZ 兼容删除、ResourceLocation.parse、YSMCompat 不再处理 normal、钓鱼线手部渲染签名变化):