summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--opplysning-vis.c8
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);