From 03adb45cc6661e187973800330aecbf4cc92d1c4 Mon Sep 17 00:00:00 2001 From: mho22 Date: Tue, 16 Jun 2026 18:40:00 +0200 Subject: [PATCH] modeset demo: single startup splat, drop idle re-seed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The fluid sim was auto-firing a demo splat pair every 90 frames (~1.5 s) whenever no mouse button was held, cycling through three position variants. The recurring re-seed was visually intrusive — the intent of the demo splat is to show the sim is alive on first frame, not to keep redrawing. Keep only the frame == 0 pair, and shift its colors from HDR red-orange + cyan to clean red + blue. Co-Authored-By: Claude Opus 4.7 (1M context) --- programs/modeset.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/programs/modeset.c b/programs/modeset.c index bbf5c0362..85c57ef32 100644 --- a/programs/modeset.c +++ b/programs/modeset.c @@ -1307,13 +1307,12 @@ int main(int argc, char **argv) { drain_mouse(mouse, &cursor_x, &cursor_y, &buttons, CANVAS_W, CANVAS_H); - if (frame == 0 || (buttons == 0 && (frame % 90) == 0)) { - float p = (float)((frame / 90) % 3); - demo_splat(0.25f + 0.12f * p, 0.36f + 0.08f * p, - 900.0f, 250.0f, 2.60f, 0.55f, 0.18f, + if (frame == 0) { + demo_splat(0.25f, 0.36f, + 900.0f, 250.0f, 2.80f, 0.05f, 0.05f, aspect, demo_seed_radius); - demo_splat(0.72f - 0.10f * p, 0.62f - 0.06f * p, - -720.0f, -340.0f, 0.18f, 1.20f, 2.80f, + demo_splat(0.72f, 0.62f, + -720.0f, -340.0f, 0.05f, 0.05f, 2.80f, aspect, demo_seed_radius); }