spaceship/vfx
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
..
AsteroidExplosionVFX.gd #155, #152: shots reach further and sooner, and the other explosions catch up 2026-08-29 14:39:35 +02:00
AsteroidExplosionVFX.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
BombBlastVFX.gd #114: the enemy bomber flies, and its bombs arrive 2026-08-23 21:58:56 +02:00
BombBlastVFX.gd.uid Add the .uid files Godot generated for the newest scripts 2026-08-24 12:10:41 +02:00
BuildingExplosionVFX.gd #99 (#97a): buildings have health, and can be destroyed 2026-08-23 13:37:40 +02:00
BuildingExplosionVFX.gd.uid Add the .uid files Godot generated for the new scripts 2026-08-23 19:23:50 +02:00
DimensionalBreach.gd #125: slow the prologue down, and give the breach a real black hole 2026-08-24 13:25:10 +02:00
DimensionalBreach.gd.uid Add the .uid files for the newest tests 2026-08-24 20:50:51 +02:00
DimensionalBreach.tscn #125: slow the prologue down, and give the breach a real black hole 2026-08-24 13:25:10 +02:00
EnemyExplosionVFX.gd #155, #152: shots reach further and sooner, and the other explosions catch up 2026-08-29 14:39:35 +02:00
EnemyExplosionVFX.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
ExplosionParticle.gd #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
ExplosionParticle.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
ExplosionVFXBase.gd Implement #85, #86, #87 and #88 2026-08-22 02:20:12 +02:00
ExplosionVFXBase.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
GasBombEffect.gd Sharpen upgrades, mark the convoy's destination, and give the world sound 2026-09-05 12:16:17 +02:00
GasBombEffect.gd.uid Add the .uid files Godot generated for the newest scripts 2026-08-24 12:10:41 +02:00
LaserBeamEffect.gd Sharpen upgrades, mark the convoy's destination, and give the world sound 2026-09-05 12:16:17 +02:00
LaserBeamEffect.gd.uid Add the .uid files Godot generated for the newest scripts 2026-08-24 12:10:41 +02:00
LightBurstVFX.gd #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
LightBurstVFX.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
MuzzleSparkVFX.gd #90: give the laser an ignition instead of a blink 2026-08-22 23:29:55 +02:00
MuzzleSparkVFX.gd.uid Implement #85, #86, #87 and #88 2026-08-22 02:20:12 +02:00
NeonDraw.gd #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
NeonDraw.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
NeonPiece.gd Stop redrawing what only needs moving 2026-09-08 11:35:45 +02:00
NeonPiece.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
ResourcePickupVFX.gd #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
ResourcePickupVFX.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
ShipExplosionVFX.gd #155, #152: shots reach further and sooner, and the other explosions catch up 2026-08-29 14:39:35 +02:00
ShipExplosionVFX.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
ShipWreckVFX.gd #130, #135: a vessel's death takes a moment, and leaves an interceptor 2026-08-28 15:05:02 +02:00
ShipWreckVFX.gd.uid #130, #135: a vessel's death takes a moment, and leaves an interceptor 2026-08-28 15:05:02 +02:00