1.5.0CVS: Timerate is inaccurate (WIN32)

Report bugs, bug fixes and workarounds here.
Avatar
Topic author
Adirondack M
Posts: 528
Joined: 01.03.2004
With us: 20 years 8 months

1.5.0CVS: Timerate is inaccurate (WIN32)

Post #1by Adirondack » 11.12.2006, 01:01

The timerate doesn't work properly in cel-scripts with 1.5.0 CVS (WIN32).

250 goes 300 (rounded up)
320 goes 300 (rounded off)
350 goes 400 (rounded up)
380 goes 400 (rounded up)
400 goes 400 (OK)

Code: Select all

{
select { object "Sol/Earth" }
follow {}
print { text "Timerate 250" row -4 column 1 duration 10.0}
timerate { rate 250 }
wait { duration 10 }
print { text "Timerate 320" row -4 column 1 duration 10.0}
timerate { rate 320 }
wait { duration 10 }
print { text "Timerate 350" row -4 column 1 duration 10.0}
timerate { rate 350 }
wait { duration 10 }
print { text "Timerate 380" row -4 column 1 duration 10.0}
timerate { rate 380 }
wait { duration 10 }
print { text "Timerate 400" row -4 column 1 duration 10.0}
timerate { rate 400 }
wait { duration 10 }
timerate { rate 1 }
}



Adirondack
We all live under the same sky, but we do not have the same horizon. (K. Adenauer)
The horizon of some people is a circle with the radius zero - and they call it their point of view. (A. Einstein)

Toti
Developer
Posts: 338
Joined: 10.02.2004
With us: 20 years 9 months

Post #2by Toti » 11.12.2006, 18:17

The timerate is correctly set by the script, but the readout was being rounded a bit too much. It's fixed now.

Avatar
Topic author
Adirondack M
Posts: 528
Joined: 01.03.2004
With us: 20 years 8 months

Post #3by Adirondack » 11.12.2006, 21:57

Thanks, Toti.

Adirondack
We all live under the same sky, but we do not have the same horizon. (K. Adenauer)

The horizon of some people is a circle with the radius zero - and they call it their point of view. (A. Einstein)

Avatar
Topic author
Adirondack M
Posts: 528
Joined: 01.03.2004
With us: 20 years 8 months

Post #4by Adirondack » 11.12.2006, 23:41

Toti,

I have updated my local CVS (Dec 11, 22:15 UT) and I did compile the EXE anew (with empty Release dirs).
But the error still exists (it is not fixed). :cry:

Adirondack
We all live under the same sky, but we do not have the same horizon. (K. Adenauer)

The horizon of some people is a circle with the radius zero - and they call it their point of view. (A. Einstein)

Toti
Developer
Posts: 338
Joined: 10.02.2004
With us: 20 years 9 months

Post #5by Toti » 12.12.2006, 01:06

Sorry, my mistake :oops:.
It should have been committed this time.


Return to “Bugs”