Comment

Comment by jakopo87

Probaly not a browser issue, looking at this line of the generated JS:

> var physics_scene = squint_core.atom(({ "gravity": [0, 0], "dt": (1 / 60), "balls": [], "obstacles": [], "flippers": [], "score": 0 }));

I think it run faster for any refresh rate higher than 60hz.

Changing the value from 60.0 to 120.0 in this line:

> :dt (/ 1.0 60.0) ;; slow down sim

and recompiling, makes it run correctly.

parent jakopo87 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton