Commit Graph

18 Commits

Author SHA1 Message Date
a5a093d7d6 feat(space_colonization): Spatial index plugged in, performance is much better 2023-08-21 09:13:43 -04:00
63c13e1739 chore: run cargo fmt 2023-08-15 15:24:55 -04:00
c4cbef68d9 feat(space colonization): Only render new node when it is created, should improve performance instead of rerendering every node on every tick 2023-08-11 11:55:48 -04:00
97cf5b21d9 feat(space colonization): now pretty much works! still slowish but not too bad, about 10fps at worst on a good laptop with a ryzen 6800u 2023-08-10 22:05:46 -04:00
62208591fc Its alive! Refactoring to improve performance using pointers works, now performance still sucks because there is no spatial index and there are some math bugs that create nodes way too far from home 2023-08-10 10:55:08 -04:00
66e1f813cf wip: Refactor space colonization, separate nodes vec from space colonization struct allows for simpler ownership management 2023-08-08 23:33:34 -04:00
jeangab
b7401bef1b wip: refactor space colonization to use mutables instead of refCell 2023-08-08 14:07:58 -04:00
Jean-Gabriel Gill-Couture
51dca7ac7e space_colonization: it works! Still need to improve rendering, animation and performance but we are getting there 2023-07-24 23:44:08 -04:00
jeangab
64c3987cae It works! Or does it? Have to inspect carefully 2023-07-24 16:10:18 -04:00
Jean-Gabriel Gill-Couture
4ef577e76b space colonization, fooling around with rust 2023-07-23 23:45:00 -04:00
Jean-Gabriel Gill-Couture
6f2505736c space-colonization: progress but runtime crashes, need to fix architecture to a better rust style 2023-07-23 09:01:53 -04:00
jeangab
20c3ae970f feat(space-propagation): slight naming improvement 2023-07-19 15:32:19 -04:00
Jean-Gabriel Gill-Couture
02b1331f72 Good progress on rendering and learned a good bit about web_sys, next step implement tick to reach attractors 2023-07-17 07:09:48 -04:00
jeangab
111285f32d Canvas takes whole parent space now, attractors are initialized nicely from a random grid 2023-07-14 15:24:49 -04:00
jeangab
0fafffb40f Figured out how to resize canvas properly, will still have to handle on window resize 2023-07-14 13:42:42 -04:00
jeangab
747e9f9595 Working on canvas, now having little squares wherever I want, next up is figuring out how to resize the canvas to the window size 2023-07-14 13:30:38 -04:00
Jean-Gabriel Gill-Couture
56ae0e63b9 Happy face is white now 2023-06-28 23:04:45 -04:00
Jean-Gabriel Gill-Couture
51666f34fd feat: Started working on canvas background, got something working in the end, wasted a lot of time figuring out dependencies 2023-06-19 01:26:02 -04:00