spaceship/surface
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Claude 4ebd832a70 #232: stop rebuilding the gas vents every frame
GasVentField called queue_redraw() every frame and its _draw rebuilt six
vents of seven glowing polygons each - 168 antialiased polylines
re-tessellated per frame, since every NeonDraw call expands into four.

Measured first: 40 rasterisations over 30 frames, costing 6.6ms against a
32.4ms floor. For scale, the black hole's cached disc costs 0.1ms.

Both halves are pieces now. The sources never move, never recolour and never
fade, so they are rasterised once. The rising bubbles genuinely change size
and opacity, but size is scale and opacity is modulate - neither needs the
geometry rebuilding. 40 rasterisations over 30 frames became 0.

Two things worth recording.

The static extraction alone measured NOTHING - 7.1ms against 6.6ms, inside
the noise. softpipe is a CPU rasteriser: it prices FILL, and cached geometry
fills the same pixels. It cannot see a tessellation saving at all. After the
full change the frame time read NEGATIVE with the floor drifting 28 to 39ms
between runs, so no millisecond figure is claimed here. The rasterisation
count is the reproducible result; what it is worth on a phone is unmeasured.

And scaling a NeonPiece scales its STROKE with it. The bubbles were first
built as unit circles scaled up by their radius, which multiplied NeonDraw's
widths by five to fourteen - a hundred pixels of glow around a fourteen
pixel bubble. They rendered as bright blobs, the rasterisation count said
40 -> 0, and only the screenshot disagreed. Built at the largest radius and
scaled DOWN now, so the stroke only ever thins. The trap is noted at the
call site: scale is safe for moving and shrinking a piece and quietly wrong
for growing one.

NeonPiece.add_polygon gained a width, which it needed to keep the vents'
authored stroke rather than silently fattening them.

179/179.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019AJMdB7iuHuLFZM1aBu3GD
2026-09-15 23:44:16 -04:00
..
boss_membrane.svg Tune and optimize boss encounter 2026-09-03 11:49:51 +02:00
boss_membrane.svg.import Tune and optimize boss encounter 2026-09-03 11:49:51 +02:00
BossSurfaceProfile.tres Make boss encounter more dynamic 2026-09-03 22:31:32 +02:00
CaptureLabel.gd Take planets by killing what defends them 2026-09-05 13:31:25 +02:00
CaptureLabel.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
GasSurfaceFeatures.tscn #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
GasSurfaceProfile.tres #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
GasVentField.gd #232: stop rebuilding the gas vents every frame 2026-09-15 23:44:16 -04:00
GasVentField.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
PlanetSetup.gd Take planets by killing what defends them 2026-09-05 13:31:25 +02:00
PlanetSetup.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
PlanetSetupEditor.gd Take planets by killing what defends them 2026-09-05 13:31:25 +02:00
PlanetSetupEditor.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
PlanetSetupEditor.tscn Smooth boosted fleet travel 2026-09-04 20:01:56 +02:00
PlanetSetupHost.gd Take planets by killing what defends them 2026-09-05 13:31:25 +02:00
PlanetSetupHost.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
PlanetSetupHost.tscn #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
PlanetSetups.gd Find the planet setups in an exported build 2026-09-07 13:55:41 +02:00
PlanetSetups.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
PlanetSetupSpawn.gd #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
PlanetSetupSpawn.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
PlanetSurface.tscn Smooth boosted fleet travel 2026-09-04 20:01:56 +02:00
PlanetSurfaceController.gd Take planets by killing what defends them 2026-09-05 13:31:25 +02:00
PlanetSurfaceController.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
PlanetSurfaceProfile.gd Make boss encounter more dynamic 2026-09-03 22:31:32 +02:00
PlanetSurfaceProfile.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
PlanetSurfaceProfiles.gd Add tentacled boss planet encounter 2026-09-03 10:33:05 +02:00
PlanetSurfaceProfiles.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
ResearchLabSurfaceProfile.tres #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
Rock.gd #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
Rock.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
Rock.tscn #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
RockField.gd #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
RockField.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
RockySurfaceFeatures.tscn #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
RockySurfaceProfile.tres #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
SurfaceBackground.gd Make boss encounter more dynamic 2026-09-03 22:31:32 +02:00
SurfaceBackground.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
SurfaceBackground.tscn #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
VoidSurfaceProfile.tres #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00