
已实现的功能!
更快的数学运算
Minecraft 频繁使用 sin() 和 cos() 等数学函数(用于光照、渲染、实体移动等)。通常情况下,这些值每次都需要重新计算。Xylene 会预先计算出所有 65,536 种可能的结果并存储在表格中。当游戏需要 sin/cos 值时,它只需立即查表获取答案,而无需进行复杂的数学运算。
更高效的数据存储
Minecraft 在名为 HashMap(你可以将其理解为字典)的数据结构中存储了大量数据。Xylene 将默认的 Java HashMap 替换为经过专门优化的版本,针对 Minecraft 使用的数据类型(如 NBT 数据、实体追踪等)具有更快的速度。
实体 Tick 剔除
每个 Tick(每秒 20 次),Minecraft 都会更新每一个实体——僵尸、牛、物品展示框,无一例外。Xylene 会跳过那些距离任何玩家超过 48 格的实体的更新。反正你离得太远也注意不到它们。(Boss 和玩家永远不会被跳过。)
碰撞检测跳过
Minecraft 会不断检查实体是否与其他物体发生碰撞。Xylene 会追踪实体是否真的发生了移动。如果实体没有移动,它将完全跳过碰撞检测——没必要重复检查静止不动的东西。
更快的网络编码
当你的游戏与服务器通信时,数字会被编码成一种称为“VarInt”的特殊格式。Xylene 用更快的手写版本替换了原有的编码循环。
Xylene 设置
它会显示所有 Xylene 优化类别的开关,让你可以单独开启或关闭各项优化。
以下功能仍处于 Alpha 测试阶段!(仅在 Alpha 版本中可用。)
Tick 插值
在任何帧率下平滑实体/玩家在各 Tick 之间的运动。
异步区块网格构建
区块几何体在主线程之外编译。
着色器预热
GL 着色器在启动时预编译,以消除首次使用时的卡顿。
资源包异步加载
切换资源包不再导致游戏冻结。
平滑光照缓存
AO 值被缓存,仅在方块变化时重新计算。
群体模拟
针对密集排列的实体简化寻路逻辑。
客户端预测平滑
淡化微小的服务器位置修正。
数据包处理节流
限制每帧的数据包处理时间,以保护渲染线程。
橡皮筋效应减少器
对微小的服务器瞬移进行插值;较大的瞬移仍会立即应用。
Ping 抖动缓冲
一个短缓冲区,用于吸收短暂的 Ping 尖峰。

“计划中但尚未启用”的功能
还有大约 40 多个其他 mixin 已注册,但目前只是空的占位符,例如漏斗优化、红石优化、光照改进、区块加载调整等。框架已经就绪,但实际的优化代码尚未填入。它们无害地加载且不执行任何操作。

Working Features!
Faster Maths
Minecraft uses sin() and cos() math functions constantly (lighting, rendering, entity movement, etc.). Normally these are calculated fresh every time. Xylene pre-calculates all 65,536 possible answers and stores them in a table. When the game needs sin/cos, it just looks up the answer instantly instead of doing the math.
Faster Data Storage
Minecraft stores a LOT of data in things called HashMaps (think of them like dictionaries). Xylene swaps out the default Java ones for specially optimized ones that are faster for the types of data Minecraft uses (NBT data, entity tracking, etc.)
Entity Tick Culling
Every tick (20 times per second), Minecraft updates every single entity — zombies, cows, item frames, everything. Xylene skips updating entities that are more than 48 blocks away from any player. They're too far away for you to notice anyway. (Bosses and players are never skipped.)
Collision Skipping
Minecraft constantly checks if entities are colliding with things. Xylene tracks whether an entity has actually moved. If it hasn't moved, it skips the collision check entirely — no point rechecking something that's standing still.
Faster Network Encoding
When your game talks to the server, numbers are encoded in a special format called "VarInt." Xylene replaces the encoding loop with a faster hand-written version.
Xylene Settings
It shows all the toggle switches for every Xylene optimization category, so you can turn individual optimizations on/off.
The Following Features are still in Alpha! (Only Availible on Alpha Versions.)
Tick Interpolation
smooth entity/player motion between ticks at any framerate.
Async Chunk Mesh Building
chunk geometry compiled off the main thread.
Shader Warm-up
GL shaders pre-compiled on startup to kill first-use stutter.
Resource Pack Async Loading
pack switching no longer freezes the game.
Smooth Lighting Cache
AO values cached, recomputed only when blocks change.
Crowd Simulation
simplified pathfinding for densely packed entities.
Client-Side Prediction Smoothing
blends out small server position corrections.
Packet Processing Throttle
caps packet drain time per frame to protect the render thread.
Rubber Band Reducer
interpolates small server snaps; large ones still apply instantly.
Ping Jitter Buffer
short buffer that absorbs brief ping spikes.

What's "Planned But Not Active"
About 40+ other mixins are registered but are currently empty placeholders, things like hopper optimization, redstone optimization, lighting improvements, chunk loading tweaks, etc. The framework is there but the actual optimization code hasn't been filled in yet. They load harmlessly and do nothing.
评论 0
登录后参与评分
还没有评论,来抢沙发吧