spaceship/ui/menus
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Loïc Wisniewski 7d1a584c15 Stop redrawing what only needs moving
Reviewed against the rule issues #6 and #10 set for the buildings: geometry
is rasterised once and thereafter only moved, scaled or faded, because every
NeonDraw call expands into four antialiased polylines.

The planet visuals never got that refactor. The black hole rebuilt ten
glowing paths of twenty-five points every frame - forty polylines - to spin
five rings; each ring is a NeonPiece that rotates now. The research lab spent
nine draw calls a frame, eight of them fixed geometry, to turn one dish and
blink six lights; the dish is a child that rotates and the lights a child
whose modulate breathes. The gas giant's bands genuinely deform, so they
still draw, but its constant rim moved out to a child. NeonPiece gained
add_path, which it needed for open arcs.

And I had broken the rule myself. ScannerGuidance re-queued a redraw of its
arrow every frame for a colour that changes only with the destination - and
it runs with PROCESS_MODE_ALWAYS, so it was re-tessellating through every
dialog that stops the rest of the game. Guarded, and pinned by a test that
counts CanvasItem's own draw signal: 36 rasterisations in 0.6s before, one
after.

Two smaller things from the same pass: the station menu drew its condition
bar by hand where the ship lab already uses a ProgressBar node, so it uses
one now and its _draw is gone; and station/upkeep refreshes were wired into
_refresh_garrison(), which nothing but a test calls, so both menus showed
whatever was true when they opened.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019AJMdB7iuHuLFZM1aBu3GD
2026-09-08 11:35:45 +02:00
..
BuildMenu.gd Refactor gameplay menus into owned scenes 2026-08-31 02:18:08 +02:00
BuildMenu.gd.uid Refactor gameplay menus into owned scenes 2026-08-31 02:18:08 +02:00
BuildMenu.tscn Buy fleet berths with Fleet Offices 2026-09-05 17:09:27 +02:00
CraftMenu.gd Offer only orderable vessels, and read out crew condition 2026-09-06 11:58:15 +02:00
CraftMenu.gd.uid Refactor gameplay menus into owned scenes 2026-08-31 02:18:08 +02:00
CraftMenu.tscn Build the logistics crews, and let them burn energy 2026-09-05 19:09:35 +02:00
DevMenu.gd Add a free-costs sandbox tool 2026-09-04 22:34:36 +02:00
DevMenu.gd.uid Turn dev mode into sandbox menu 2026-09-03 20:05:33 +02:00
DevMenu.tscn Add a free-costs sandbox tool 2026-09-04 22:34:36 +02:00
FleetUpkeepMenu.gd Charge more for each berth, and show the bill 2026-09-05 22:36:21 +02:00
FleetUpkeepMenu.gd.uid Keep the export probe, and the uid files beside the new scripts 2026-09-07 16:40:45 +02:00
FleetUpkeepMenu.tscn Charge more for each berth, and show the bill 2026-09-05 22:36:21 +02:00
FormationMenu.gd Refactor gameplay menus into owned scenes 2026-08-31 02:18:08 +02:00
FormationMenu.gd.uid Refactor gameplay menus into owned scenes 2026-08-31 02:18:08 +02:00
FormationMenu.tscn Restore landing fade and missing event sounds 2026-08-31 18:15:37 +02:00
GarrisonMenu.gd Refactor gameplay menus into owned scenes 2026-08-31 02:18:08 +02:00
GarrisonMenu.gd.uid Refactor gameplay menus into owned scenes 2026-08-31 02:18:08 +02:00
GarrisonMenu.tscn Refactor gameplay menus into owned scenes 2026-08-31 02:18:08 +02:00
HangarMenu.gd Refactor gameplay menus into owned scenes 2026-08-31 02:18:08 +02:00
HangarMenu.gd.uid Refactor gameplay menus into owned scenes 2026-08-31 02:18:08 +02:00
HangarMenu.tscn Refactor gameplay menus into owned scenes 2026-08-31 02:18:08 +02:00
LabMenu.gd Plan every craftable vessel, and stop restating the point cost 2026-09-05 23:13:23 +02:00
LabMenu.gd.uid Refactor gameplay menus into owned scenes 2026-08-31 02:18:08 +02:00
LabMenu.tscn Complete lab, quest, garrison, and energy tickets 2026-09-03 00:12:08 +02:00
MenuLayout.gd Refactor gameplay menus into owned scenes 2026-08-31 02:18:08 +02:00
MenuLayout.gd.uid Refactor gameplay menus into owned scenes 2026-08-31 02:18:08 +02:00
ModalMenu.gd Refactor gameplay menus into owned scenes 2026-08-31 02:18:08 +02:00
ModalMenu.gd.uid Refactor gameplay menus into owned scenes 2026-08-31 02:18:08 +02:00
PlanningMenu.gd Refactor gameplay menus into owned scenes 2026-08-31 02:18:08 +02:00
PlanningMenu.gd.uid Refactor gameplay menus into owned scenes 2026-08-31 02:18:08 +02:00
PlanningMenu.tscn Refactor gameplay menus into owned scenes 2026-08-31 02:18:08 +02:00
ResearchPointsMenu.gd Teach where research data comes from, and say so when it runs out 2026-09-06 16:24:09 +02:00
ResearchPointsMenu.gd.uid Keep the export probe, and the uid files beside the new scripts 2026-09-07 16:40:45 +02:00
ResearchPointsMenu.tscn Teach where research data comes from, and say so when it runs out 2026-09-06 16:24:09 +02:00
ScannerMenu.gd Add planet scanner and octopus biome 2026-09-04 15:56:07 +02:00
ScannerMenu.gd.uid Buy fleet berths with Fleet Offices 2026-09-05 17:09:27 +02:00
ScannerMenu.tscn Add planet scanner and octopus biome 2026-09-04 15:56:07 +02:00
SkillMenu.gd Resolve pending gameplay tickets 2026-09-02 13:43:56 +02:00
SkillMenu.gd.uid Refactor gameplay menus into owned scenes 2026-08-31 02:18:08 +02:00
SkillMenu.tscn Refactor gameplay menus into owned scenes 2026-08-31 02:18:08 +02:00
StationMenu.gd Stop redrawing what only needs moving 2026-09-08 11:35:45 +02:00
StationMenu.gd.uid Keep the export probe, and the uid files beside the new scripts 2026-09-07 16:40:45 +02:00
StationMenu.tscn Stop redrawing what only needs moving 2026-09-08 11:35:45 +02:00
TransferMenu.gd Refactor gameplay menus into owned scenes 2026-08-31 02:18:08 +02:00
TransferMenu.gd.uid Refactor gameplay menus into owned scenes 2026-08-31 02:18:08 +02:00
TransferMenu.tscn Refactor gameplay menus into owned scenes 2026-08-31 02:18:08 +02:00