Google Classroom
GeoGebraGeoGebra Classroom

FPS test for LocusEquation

This applet tests GeoGebra's animation capabilities by connecting a slider and the LocusEquation command. See the applet A necessary not-sufficient condition for the mathematical details. Technically, on the web platform it is more difficult to get 30 frames per second (FPS), because computing the underlying Gröbner bases is done purely in JavaScript. Running the applet on an Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz (4 cores), about 10 FPS can be achieved.
Firefox 47.0
Firefox 47.0
Google Chrome 49.0.2623.110
Google Chrome 49.0.2623.110
Unfortunately, after several seconds the current implementation (GeoGebra 5.0.250.0) will stop with the following error message (see the JavaScript console):
Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value, (2) compile with ALLOW_MEMORY_GROWTH which adjusts the size at runtime but prevents some optimizations, or (3) set __ggb__giac.TOTAL_MEMORY before the program runs.
This is an error raised by emscripten. In later versions of the implementation this problem will be hopefully fixed.
On the other hand, desktop version of GeoGebra has no such issues, and almost continuously 30 FPS can be achieved:
Image