summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2025-08-05 16:48:10 -0700
committerVito Caputo <vcaputo@pengaru.com>2025-08-05 16:50:49 -0700
commit5a77cac05b7a5f7437e88bcebfaed3b5ef21dec2 (patch)
treed55fb6f655967960cdba3ea76c27d1a34b84395c /src/modules
parent611ef86055b093e4fc8cfeab804037e82804f178 (diff)
modules/submit: skip the simulation if same tickHEADmaster
When used as something like the checkers fill_module, submit goes crazy fast because every filled checker is running the simulation. That tends to be far more than the number of cpus / fill module contexts.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/submit/submit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/submit/submit.c b/src/modules/submit/submit.c
index fea9444..2a9615a 100644
--- a/src/modules/submit/submit.c
+++ b/src/modules/submit/submit.c
@@ -295,6 +295,9 @@ static void submit_prepare_frame(til_module_context_t *context, til_stream_t *st
*res_frame_plan = (til_frame_plan_t){ .fragmenter = til_fragmenter_tile64 };
+ if (ticks == context->last_ticks)
+ return;
+
if (ctxt->game_winner)
setup_grid(ctxt);
© All Rights Reserved