Has slider real time speed decreased over time?

rfv shared this question 1 year ago
Answered

Using GeoGebra Classic 5.0.627.0-d, I've noticed that it now takes roughly 15 seconds for an animated slider to cover its range at speed 1. Earlier constructions from 3 years go were based on a timing of 10 seconds to cover the same range at speed 1. What is the current intended time?

In constructions modeling simple Newtonian systems it is a "nice touch" to have the approximate time in the model correspond to a physical experiment.

Comments (14)

photo
1

Confirmed. :)

Let's ask the to the developers.

photo
1

I've posted TimeSlider.ggb (also shown below and attached) that collects statistics on timer performance with slider min 0 max 1 inc 0.1 speed 1 which should nominally generate time update interrupts every second. Hit start, stop, wait a while, stats for results.

0a6b08b9159aab90a5fd604421df75db

With Classic 5 I get average dt about 1.4, with Classic 6 about 1.04 and with the online app about 1.03.

What's different about Classic 5?

photo
1

It should be around 10s (so online behaviour is correct)

photo
1

windows 7 version 5.0.627 funciona exacto

/wPpJjHGuUPGDAAAAABJRU5ErkJggg==

photo
1

Windows 10 gives the results shown above: 1.4 sec. Windows 7 is no longer supported. Can anyone shed some light on WHY performance is different with Classic 5 on Win 10?

photo
1

2 different Win 10 pro systems (with I7 processor and 16GB memory, so no system limitations) give 1.4. An Apple MacBookPro with latest macOS 10.15.7 Classic 5 gives 1.05. Can anyone at least point me to the code used by Classic 5 for implementing the slider timer interrupts?

photo
1

Try changing

   long compTime = System.currentTimeMillis() - startTime;
to

   double compTime = UtilFactory.getPrototype().getMillisecondTime() - startTime;

photo
1

Thanks for the suggestion, but I'm not setup to compile. Is there any different between the Classic 5 and 6 timer handling (since the give different Win 10 performance on the same .ggb test file)?

photo
1

No, the problem is that your computer is too fast I think 😆

photo
1

In that case, how does Classic 6 slow down the computer enough such that the timer runs faster?

photo
photo
1

Please try v634

photo
1

Thanks. V634 fixed the problem.

photo
© 2022 International GeoGebra Institute