Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jchavannes
on Sept 18, 2016
|
parent
|
context
|
favorite
| on:
Show HN: Simple pendulum simulation with rational ...
Yep. This is the code that's causing it[1]:
var now = Date.now()/1000; var dt = now - then;
Adding this line fixes it:
dt = dt > 1 ? 1 : dt;
[1]
https://github.com/grondilu/grondilu.github.io/blob/47d41d/p...
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: