diff options
author | Martin Stensgård <mastensg@mastensg.net> | 2025-07-22 23:47:03 +0200 |
---|---|---|
committer | Martin Stensgård <mastensg@mastensg.net> | 2025-07-22 23:47:03 +0200 |
commit | 2458456eb7f4024dae1b37940b21db865d399b14 (patch) | |
tree | 417078a0e9480c295c8d3f1c8a422a996eeed7fb | |
parent | 02a7a5aa02ed69efa1b8e252633615ef05823b92 (diff) |
opplysning-vis: update almost once every tenth second
-rw-r--r-- | opplysning-vis.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/opplysning-vis.c b/opplysning-vis.c index ba4d9c9..564de5d 100644 --- a/opplysning-vis.c +++ b/opplysning-vis.c @@ -283,7 +283,15 @@ main(void) }; ray_init(); + int t = 0; while (!WindowShouldClose()) { + if (!t) { + + load_events(&google); + load_events(&meetup); + } + t = t < 647 ? t + 1 : 0; + if (IsKeyPressed(KEY_R)) { double t0 = GetTime(); load_events(&google); |