It looks pretty interesting but unfortunately I'm unable to run the demo, getting a crash in glDrawElements which is sort of outside of my scope to address. As a side note the debug symbols flag doesn't get passed to individual C files so the binary ends up without debugging symbols (as a workaround I moved the -g3 flag to CC variable instead).
Interesting. What distribution are you using? On Debian it has been working fine, however on macOS I also encounter the glDrawElements issue. Still working on that.
Not the OP, but it crashed with ubuntu 19.10 with a GTX1070 with the default ubuntu nvidia binary blob:
i nvidia-driver-390 - NVIDIA driver metapackage
Maybe the code is incompatible with libglew2.1?
When I run:
$ ./ecosim
Segmentation fault (core dumped)
I see a window map for an instant before the seg fault.