Skip to content

CodexPanel rebuilds entry list on every open #35

@aebrer

Description

@aebrer

Problem

CodexPanel rebuilds its entire entry list every time the panel is opened, even when no new discoveries have been made since the last open. For players with many discoveries, this creates unnecessary work.

Location

scripts/ui/codex_panel.gd

Suggested Fix

Track a dirty flag (set when new discoveries are made via signal) and only rebuild when dirty. Cache the built UI elements between opens.

Priority

Low — the codex is opened infrequently and rebuild cost is minimal for current content volume. Non-blocking.

Found during v0.7.0 performance review.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions