From b437600c820f489049c022d2c4697226cf8d68fc Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Thu, 9 Jun 2022 22:40:06 -0700 Subject: til: add ticks to til_module_context_t Also wire this up to the til_module_context_new() helper and all its callers. This is in preparation for modules doing more correct delta-T derived animation. --- src/modules/swarm/swarm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/swarm') diff --git a/src/modules/swarm/swarm.c b/src/modules/swarm/swarm.c index 14d82ed..fd852cd 100644 --- a/src/modules/swarm/swarm.c +++ b/src/modules/swarm/swarm.c @@ -188,7 +188,7 @@ static til_module_context_t * swarm_create_context(unsigned seed, unsigned ticks if (!setup) setup = &swarm_default_setup.til_setup; - ctxt = til_module_context_new(sizeof(swarm_context_t) + sizeof(*(ctxt->boids)) * SWARM_SIZE, seed, n_cpus); + ctxt = til_module_context_new(sizeof(swarm_context_t) + sizeof(*(ctxt->boids)) * SWARM_SIZE, seed, ticks, n_cpus); if (!ctxt) return NULL; -- cgit v1.2.3