No description
  • GDScript 96.3%
  • GDShader 2%
  • Shell 0.8%
  • Python 0.6%
  • HTML 0.3%
Find a file
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
android Initial commit: SpaceshipTest, a top-down space RTS in Godot 4.7.1 2026-08-10 18:41:58 +02:00
audio #229, #234: one voice per volley, and gas within reach of the spawn 2026-09-15 23:44:15 -04:00
boss Take planets by killing what defends them 2026-09-05 13:31:25 +02:00
buildings Keep the export probe, and the uid files beside the new scripts 2026-09-07 16:40:45 +02:00
controllers Let the speed fader have the click it is under 2026-09-12 19:06:29 +02:00
core #233: open with fewer enemies, of one kind, arriving in sequence 2026-09-15 23:44:16 -04:00
enemies #233: open with fewer enemies, of one kind, arriving in sequence 2026-09-15 23:44:16 -04:00
fonts Skill tree, node-based building animation, bigger UI, and a 19x faster test suite 2026-08-11 15:00:41 +02:00
logistics Research the Fleet Office, and give it one hull 2026-09-05 21:57:53 +02:00
planets #227: resume at the mothership, with the crew the save had 2026-09-12 15:57:48 +02:00
PlanetSetups Take planets by killing what defends them 2026-09-05 13:31:25 +02:00
resources #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
shaders Tune and optimize boss encounter 2026-09-03 11:49:51 +02:00
shots Remove the one-way ore API superseded by the transfer menu 2026-08-12 13:07:52 +02:00
surface #232: stop rebuilding the gas vents every frame 2026-09-15 23:44:16 -04:00
tests #233: open with fewer enemies, of one kind, arriving in sequence 2026-09-15 23:44:16 -04:00
ui Let the speed fader have the click it is under 2026-09-12 19:06:29 +02:00
vessels Let the fleet grow past twenty vessels 2026-09-12 19:06:29 +02:00
vfx #232: stop rebuilding the gas vents every frame 2026-09-15 23:44:16 -04:00
world #229, #234: one voice per volley, and gas within reach of the spawn 2026-09-15 23:44:15 -04:00
.gitignore Add a WSL path to the test runner 2026-08-22 14:40:44 +02:00
export_presets.cfg Fix the web build: a wasm trap on integer % 0, and buttons that never fired 2026-08-19 01:08:09 +02:00
icon.svg Initial commit: SpaceshipTest, a top-down space RTS in Godot 4.7.1 2026-08-10 18:41:58 +02:00
icon.svg.import Initial commit: SpaceshipTest, a top-down space RTS in Godot 4.7.1 2026-08-10 18:41:58 +02:00
project.godot Smooth boosted fleet travel 2026-09-04 20:01:56 +02:00
ui_theme.tres Skill tree, node-based building animation, bigger UI, and a 19x faster test suite 2026-08-11 15:00:41 +02:00
web_shell.html Fix the web build: a wasm trap on integer % 0, and buttons that never fired 2026-08-19 01:08:09 +02:00