diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2025-08-05 16:48:10 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2025-08-05 16:50:49 -0700 |
commit | 5a77cac05b7a5f7437e88bcebfaed3b5ef21dec2 (patch) | |
tree | d55fb6f655967960cdba3ea76c27d1a34b84395c /src/modules | |
parent | 611ef86055b093e4fc8cfeab804037e82804f178 (diff) |
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.c | 3 |
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); |