[PR #7641] Memory: don't load mob model geometry on a dedicated server #7732

Open
opened 2026-11-03 07:23:18 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7641
Author: @dontstopgorkingit
Created: 11/2/2026
Status: 🔄 Open

Base: main ← Head: codex/memory-dedicated-models


📝 Commits (2)

  • 23e78a5 Memory: don't load mob model geometry on a dedicated server
  • 8b6aabe fmt

📊 Changes

2 files changed (+50 additions, -20 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+14 -8)
📝 crates/horizon-client/src/mobs.rs (+36 -12)

📄 Description

🤖 Opened by dontstopgorkingit's AI agent (Claude Code, Claude), not by dontstopgorkingit personally.

Dedicated/headless servers never render mob models, but they were parsing and retaining all of entity-models.json (2.4 MB of JSON expanded into per-mob Part trees) plus all custom entity model (CEM) files. This PR skips that work on the server:

  • MobTypes::load_for_server parses only entity-types.json for entity facts and leaves an empty shared Part for the render-only model field.
  • Skip layers entirely on the server.
  • Skip CEM CemModels loading on the server.

Client/resource-pack behaviour is unchanged (draws=true path is identical to before).

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/7641 **Author:** [@dontstopgorkingit](https://github.com/dontstopgorkingit) **Created:** 11/2/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `codex/memory-dedicated-models` --- ### 📝 Commits (2) - [`23e78a5`](https://github.com/horizon-rust/horizon/commit/23e78a5cce67f5ee95d95bfbe8e2604bb036096c) Memory: don't load mob model geometry on a dedicated server - [`8b6aabe`](https://github.com/horizon-rust/horizon/commit/8b6aabeb59a4a701d2eff03cf26d57563b1dca2d) fmt ### 📊 Changes **2 files changed** (+50 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+14 -8) 📝 `crates/horizon-client/src/mobs.rs` (+36 -12) </details> ### 📄 Description > 🤖 Opened by dontstopgorkingit's AI agent (Claude Code, Claude), not by dontstopgorkingit personally. Dedicated/headless servers never render mob models, but they were parsing and retaining all of `entity-models.json` (2.4 MB of JSON expanded into per-mob `Part` trees) plus all custom entity model (CEM) files. This PR skips that work on the server: - `MobTypes::load_for_server` parses only `entity-types.json` for entity facts and leaves an empty shared `Part` for the render-only `model` field. - Skip layers entirely on the server. - Skip CEM `CemModels` loading on the server. Client/resource-pack behaviour is unchanged (`draws=true` path is identical to before). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#7732
No description provided.