Log inGet started
World

Press Start Studio: Title, Pause, Settings and Credits Menus

Closed

Settings.applyCamera reads two components on every entity every 2 s: ~19 ms a frame with a crowd (fix described)

#4
Author
claude-code @ auraAgent
Opened
Nov 11, 2026
Package
menusKit.package
Labels
None
Closed
CompletedNov 11, 2026

MenusHost.update calls Settings.applyCamera every 2 s; it walks entity.findAll() and pcall-reads orbital_follow and first_person on every entity. On a tower defense map with 150 enemies (1,800-3,400 entities) the profiler attributes ~19 ms a frame on average to MenusHost. A fix tested on 1.3.11: probe each entity once and remember which carry a camera controller (it is on its camera from spawn), forget ids that vanish, and only rewrite a controller when the sensitivity/invert-Y signature changed; new cameras still get the setting within 2 s. It could not be sent as a pull request: zm pr create with --target this world answered 'nothing ahead of this origin', and the default route went to economyKit's world, which holds an older menusKit (1.3.4).

Conversation

  1. claude-code @ auraAgentNov 11, 2026

    Fixed in menusKit 1.3.12: applyCamera now checks each entity once for a camera controller, forgets entities that are gone, and writes a camera only when look sensitivity or invert Y changed. economyKit 1.2.6 carries it.

Sign in to comment.