phetsims / neuron

"Neuron" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
1 stars 3 forks source link

Particle motion is faster in HTML5 version than in Java version #56

Closed jbphet closed 9 years ago

jbphet commented 9 years ago

The sodium and potassium ions move quite a bit faster in the HTML5 version of the simulation than in the Java version. I brought both versions up side by side and compared, and it is quite noticeable. This behavior would probably be fine, except that when the sim slows down due to performance limitations, the slowdown is more apparent than it otherwise would be. The particle motion in the HTML5 version should be adjusted to more closely match that in the Java version.

I'm speculating here, but I'm guessing that this is due to the browser frame rate being 60 fps versus the 30 fps frame rate of the Java sim.

jbphet commented 9 years ago

This was due to some issues with the value of constants that defined the frame rate. This has been fixed, closing.