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/til.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/til.c') diff --git a/src/til.c b/src/til.c index b8aecd8..951a398 100644 --- a/src/til.c +++ b/src/til.c @@ -234,7 +234,7 @@ int til_module_create_context(const til_module_t *module, unsigned seed, unsigne n_cpus = til_threads_num_threads(til_threads); if (!module->create_context) - context = til_module_context_new(sizeof(til_module_context_t), seed, n_cpus); + context = til_module_context_new(sizeof(til_module_context_t), seed, ticks, n_cpus); else context = module->create_context(seed, ticks, n_cpus, setup); -- cgit v1.2.1