From 026aa887f99d87932fd5316152a15c1a79f5a6e2 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sat, 26 Aug 2023 00:51:17 +0100 Subject: +further multithreading I split the grid into 4 quadrants which are managed by their own thread. Improves speed and uses more resources correctly. --- lib.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib.h') diff --git a/lib.h b/lib.h index 1831f5e..33423d8 100644 --- a/lib.h +++ b/lib.h @@ -12,9 +12,10 @@ typedef struct State size_t dwidth; size_t window_len; - int multiplier; + double multiplier; bool thread_alive; + uint64_t payload; } state_t; bool load_from_file(state_t *state, const char *filepath); -- cgit v1.2.3-13-gbd6f