Claude
aaf8b400ef
Build the accretion disc once per spawn, not twice
...
Planet.gd calls visual.configure() BEFORE add_child(), and the SceneTree
defers _ready() to the first frame - so configure() built the five rings,
and _ready() then threw them away and built five more. Eighty antialiased
polylines tessellated per black hole instead of forty, plus five nodes
queued for free.
Confirmed by instrumenting _build():
_build() called, existing children=0 <- configure()
_build() called, existing children=5 <- _ready()
_ready() now uses the same is-it-built guard configure() already had.
Note for anyone chasing the same thing: this is NOT the disc's steady-state
cost. Measured, the geometry rasterises zero times over sixty frames (the
NeonPiece refactor works), and rendering the disc costs 0.1 ms against a
133 ms softpipe floor. The disc is cheap once it exists.
172/172.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019AJMdB7iuHuLFZM1aBu3GD
2026-09-08 22:35:41 +02:00
..
BlackHolePlanetDefinition.tres
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
BlackHoleVisual.gd
Build the accretion disc once per spawn, not twice
2026-09-08 22:35:41 +02:00
BlackHoleVisual.gd.uid
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
BlackHoleVisual.tscn
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
BossPlanetDefinition.tres
Add tentacled boss planet encounter
2026-09-03 10:33:05 +02:00
BossPlanetVisual.gd
Tune and optimize boss encounter
2026-09-03 11:49:51 +02:00
BossPlanetVisual.gd.uid
Add tentacled boss planet encounter
2026-09-03 10:33:05 +02:00
BossPlanetVisual.tscn
Add tentacled boss planet encounter
2026-09-03 10:33:05 +02:00
GasGiantDefinition.tres
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
GasGiantVisual.gd
Stop redrawing what only needs moving
2026-09-08 11:35:45 +02:00
GasGiantVisual.gd.uid
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
GasGiantVisual.tscn
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
Planet.gd
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
Planet.gd.uid
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
Planet.tscn
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
PlanetAtmosphereController.gd
#129 ( #131 , #132 , #133 ): a quest chain, and a World Ship out of reach
2026-08-28 14:41:03 +02:00
PlanetAtmosphereController.gd.uid
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
PlanetDefinition.gd
Preserve packed definition arrays in exports
2026-08-31 15:23:25 +02:00
PlanetDefinition.gd.uid
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
PlanetDefinitions.gd
Add tentacled boss planet encounter
2026-09-03 10:33:05 +02:00
PlanetDefinitions.gd.uid
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
PlanetField.gd
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
PlanetField.gd.uid
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
ResearchLabPlanetDefinition.tres
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
ResearchLabPlanetVisual.gd
Stop redrawing what only needs moving
2026-09-08 11:35:45 +02:00
ResearchLabPlanetVisual.gd.uid
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
ResearchLabPlanetVisual.tscn
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
RockyPlanetDefinition.tres
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
RockyPlanetVisual.gd
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
RockyPlanetVisual.gd.uid
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
RockyPlanetVisual.tscn
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00