← Back to list

nethercore-optimization
by nethercore-systems
⭐ 1🍴 0📅 Jan 15, 2026
SKILL.md
name: Nethercore Optimization description: | Optimization techniques for Nethercore games. Triggers on "optimize", "reduce size", "wasm-opt", "compress", "LTO", "asset compression", "state size".
Load references when:
- Detailed techniques ->
references/optimization-techniques.mdversion: 1.0.0
Nethercore Optimization
WASM Optimization
Cargo.toml Settings
[profile.release]
lto = true # Link-time optimization
opt-level = "z" # Optimize for size
codegen-units = 1 # Better optimization
panic = "abort" # Smaller than unwind
strip = true # Strip symbols
Post-Build
wasm-opt -Oz game.wasm -o game.wasm
Typical savings: 20-40%
Texture Optimization
All textures use BC7 compression (4:1 ratio):
| Original | Compressed |
|---|---|
| 256x256 RGBA (256 KB) | 64 KB |
| 512x512 RGBA (1 MB) | 256 KB |
Resolution targets:
- UI elements: 256x256
- Characters: 256-512
- Environment: 128-256
Mesh Optimization
| Format | Size/Vertex |
|---|---|
| Position only | 12 bytes |
| Pos + UV | 20 bytes |
| Pos + UV + Normal | 32 bytes |
| Full | 40 bytes |
Poly targets:
- Background props: 50-200
- Interactive props: 100-500
- Characters: 500-2000
Audio Optimization
- Sample rate: 22050 Hz (engine limit)
- Channels: Mono only
- Use XM modules for music (95% savings vs WAV)
State Size Reduction
// Use compact types
struct Position { x: f32, y: f32 } // 8 bytes
struct Position { x: i16, y: i16 } // 4 bytes (fixed-point)
// Fixed arrays, not Vec
entities: [Entity; 64], // Known size
Quick Wins Checklist
- LTO and opt-level = "z" in Cargo.toml
- wasm-opt -Oz on final binary
- Texture resolutions at 256x256 default
- Music as XM format
- Fixed arrays instead of Vec
Score
Total Score
60/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon