Ceres
概述
Ceres 是一款专为 Minecraft 设计的高性能网络优化模组。它旨在减少网络流量、降低延迟并提升多人游戏体验。通过多种手段,Ceres 显著降低了 Minecraft 客户端与服务器之间传输的数据量,使其特别适用于网络条件较差或大型服务器环境。
它原生实现了 Velocity 的 Netty 框架,并集成了高性能的 libdeflate 压缩库。
致谢 Velocity 和 Pluto
主要功能
数据包压缩
- 仅压缩超过阈值的包,以避免对小包产生额外开销
- 根据需要平衡压缩率与性能
- 如果压缩后体积变大,则自动使用原始数据
重复数据包过滤
- 智能检测:识别并过滤冗余的网络数据包
- 类型过滤:可配置的位置、区块和实体数据包过滤
- 安全机制:超时和最大连续重复次数确保游戏状态同步
网络优化模式
- Vanilla 模式:使用 Forge 的网络系统以实现最大兼容性
- Modern 模式:直接利用 Netty 实现更强的优化(可能与某些模组冲突)
数据包批处理
- 智能批处理:将小包合并为大包以减少开销
- 可配置的延迟:调整批处理延迟以平衡响应速度和效率
- 优先级处理:确保关键数据包永不延迟
性能影响
在我们的测试中,Ceres 在各种网络条件下表现优异:
| 场景 |
流量减少 |
延迟改善 |
| 高实体密度区域 |
高达 75% |
15-30% |
| 大型红石机器 |
高达 60% |
10-25% |
| 快速探索区块 |
高达 50% |
5-20% |
| 多人 PVP |
高达 40% |
10-15% |
| 功能 |
JAVA |
LIBDEFLATE |
| CPU 占用 |
中等 |
低 |
| 压缩率 |
良好 |
优秀 |
| 兼容性 |
最佳 |
需要原生支持 |
| 性能 |
标准 |
快 2-4 倍 |
配置选项
Ceres 提供广泛的配置:
常规设置
- 优化模式(Vanilla/Modern)
- 数据包压缩开关
- 压缩阈值/等级
- 重复过滤设置
客户端设置
服务端设置
/ceres compression stats - 显示压缩统计信息
/ceres compression reset - 重置统计信息
/ceres compression engine <type> - 切换压缩引擎
/ceres compression benchmark - 运行性能测试
兼容性
Ceres 旨在与大多数 Minecraft 模组兼容。Vanilla 模式确保最大兼容性,而 Modern 模式优先考虑优化。
如果遇到兼容性问题,请尝试切换到 Vanilla 模式或禁用特定的优化功能。
注意事项
- 可能与其他网络优化模组冲突
- LIBDEFLATE 需要受支持的操作系统/架构
安装
- 确保已安装 Minecraft 1.19.2 及兼容的 Forge
- 下载 Ceres 模组文件
- 将文件放入 Minecraft 的
mods 文件夹
- 启动游戏——Ceres 将在启动时自动配置
性能监控
Ceres 包含内置的监控工具:
- 按 F3 打开调试屏幕
- 查找显示优化统计信息的
[Ceres] 条目
- 统计信息包括压缩率、过滤的数据包和网络流量
常见问题
Q: Ceres 是否需要在服务器和客户端都安装?
A: 为了获得最佳效果,建议在两端都安装。仅安装在客户端可提供部分优化。
Q: Ceres 会影响游戏稳定性吗?
A: Ceres 包含多重安全机制以确保稳定性。如果出现异常,请禁用特定功能。
Q: 为什么我看不到网络统计信息?
A: 在配置文件中启用 showNetworkStats 并检查 F3 调试屏幕。
贡献与支持
Ceres 是开源项目。我们欢迎代码贡献和建议。请通过我们的 GitHub 仓库提交 Issue 或 PR。
Ceres
Overview
Ceres is a high-performance network optimization mod designed for Minecraft .It aims to reduce network traffic, lower latency, and enhance multiplayer gaming experiences. Through various methods, Ceres significantly decreases the data volume transmitted between Minecraft clients and servers, making it particularly suitable for poor network conditions or large-scale server environments.
It features a native implementation of Velocity's Netty framework and integrates the high-performance libdeflate compression library.
Acknowledgments to Velocity and Pluto
Key Features
Packet Compression
- Compresses only packets exceeding a threshold to avoid overhead for small packets
- Balances compression ratio and performance as needed
- Automatically uses raw data if compression yields larger sizes
Duplicate Packet Filtering
- Smart Detection: Identifies and filters redundant network packets
- Type Filtering: Configurable filtering for position, chunk, and entity packets
- Safety Mechanisms: Timeout and max consecutive duplicates ensure game state synchronization
Network Optimization Modes
- Vanilla Mode: Uses Forge's networking system for maximum compatibility
- Modern Mode: Leverages Netty directly for stronger optimizations (may conflict with some mods)
Packet Batching
- Intelligent Batching: Merges small packets into larger ones to reduce overhead
- Configurable Latency: Adjust batching delays to balance responsiveness and efficiency
- Priority Handling: Ensures critical packets are never delayed
Performance Impact
In our tests, Ceres excels across various network conditions:
| Scenario |
Traffic Reduction |
Latency Improvement |
| High-entity-density areas |
Up to 75% |
15-30% |
| Large redstone machines |
Up to 60% |
10-25% |
| Rapid chunk exploration |
Up to 50% |
5-20% |
| Multiplayer PVP |
Up to 40% |
10-15% |
| Feature |
JAVA |
LIBDEFLATE |
| CPU Usage |
Moderate |
Low |
| Compression Ratio |
Good |
Excellent |
| Compatibility |
Best |
Requires native |
| Performance |
Standard |
2-4x faster |
Configuration Options
Ceres offers extensive configuration:
General Settings
- Optimization mode (Vanilla/Modern)
- Packet compression toggle
- Compression threshold/level
- Duplicate filtering settings
Client Settings
- Client optimization toggle
- Batching latency/size
- Network stats display
Server Settings
- Server optimization toggle
- Server batching parameters
- Chunk update optimizations
/ceres compression stats - Show compression statistics
/ceres compression reset - Reset stats
/ceres compression engine <type> - Switch compression engine
/ceres compression benchmark - Run performance tests
Compatibility
Ceres is designed for compatibility with most Minecraft mods. Vanilla Mode ensures maximum compatibility, while Modern Mode prioritizes optimizations.
If encountering issues, try switching to Vanilla Mode or disabling specific optimizations.
Notes
- May conflict with other network optimization mods
- LIBDEFLATE requires supported OS/architecture
Installation
- Ensure Minecraft 1.19.2 and compatible Forge are installed
- Download the Ceres mod file
- Place the file in Minecraft's
mods folder
- Launch the game – Ceres auto-configures upon startup
Performance Monitoring
Ceres includes built-in monitoring tools:
- Press F3 to open the debug screen
- Locate
[Ceres] entries showing optimization stats
- Stats include compression ratios, filtered packets, and network traffic
FAQ
Q: Does Ceres require installation on both server and client?
A: For best results, install on both. Client-only installation provides partial optimizations.
Q: Does Ceres affect game stability?
A: Ceres includes multiple safeguards to ensure stability. Disable specific features if issues arise.
Q: Why can't I see network stats?
A: Enable showNetworkStats in config and check the F3 debug screen.
Contributions & Support
Ceres is open-source. We welcome code contributions and suggestions. Please submit issues or PRs via our GitHub repository.
评论 0
登录后参与评分
还没有评论,来抢沙发吧