Skip to content

zh_cn Zero Dependency Design

Rifa edited this page Aug 25, 2026 · 1 revision

零依赖架构设计

本文档详细阐述了 速度计 (Speedometer) 采用 100% 零依赖 设计架构的工程考量与优势。


📊 Dependency Comparison Infobox

Category Standard Fabric Mod Speedometer
Fabric Loader Requirement 0.15.0+ 0.15.0+
Fabric API Requirement Required (fabric-api) Not Required (0 Dependencies)
GUI Framework Requirement Required (cloth-config / yacl) Not Required (Uses Vanilla F3+F6)
JAR File Size $\sim 500\text{ KB} - 2\text{ MB}$ $\sim 78\text{ KB}$
Initialization Overhead $\sim 50 - 200\text{ ms}$ $< 1\text{ ms}$

💡 Rationale & Benefits

  1. Maximum Portability & Compatibility: Zero external library breakage risks.
  2. Zero Overhead: Loads in $< 1\text{ ms}$ at game launch.
  3. Ultra-Lightweight Footprint: Compiled JAR under $80\text{ KB}$.

🔗 相关页面

📖 Speedometer Wiki

🌐 Languages


🇺🇸 English
🇨🇳 简体中文 (Simplified Chinese)
🇭🇰 繁體中文 (Traditional Chinese)
🇷🇺 Русский (Russian)
🇪🇸 Español (Spanish)
🇩🇪 Deutsch (German)
🇫🇷 Français (French)
🇧🇷 Português (Portuguese)
🇯🇵 日本語 (Japanese)
🇮🇩 Bahasa Indonesia (Indonesian)
🇰🇷 한국어 (Korean)

🔗 External Links

Clone this wiki locally