[issue10170] Relationship between turtle speed setting and actual speed is not documented
New submission from Alexander Belopolsky
From the source code, it appears that the on-screen speed is controlled by the number of animation steps while each step takes approximately time controlled by the "delay" setting that defaults to 10 milliseconds.
The number of steps is determined by somewhat peculiar computations. For a rotation by angle of a degrees at speed setting s, the number of steps is
n = 2 + int(a / (3 * s))
and for drawing a line of length d,
n = 1 + int(d / (3 * 1.1**s * s))
I am not sure what was the reason for these choices, but I think it would be better if numeric speed code had a more direct relationship to the apparent speed.
----------
assignee: docs@python
components: Demos and Tools, Documentation
messages: 119334
nosy: belopolsky, docs@python, eric.araujo, georg.brandl, gregorlingl, terry.reedy
priority: normal
severity: normal
status: open
title: Relationship between turtle speed setting and actual speed is not documented
versions: Python 3.2
_______________________________________
Python tracker
Mark Lawrence added the comment:
IIRC somebody has been working on the turtle code and/or docs recently, if I'm correct presumably they could pick this issue up?
----------
nosy: +BreamoreBoy
_______________________________________
Python tracker
Changes by Terry J. Reedy
Terry J. Reedy added the comment:
After looking at these results in relation to the qualitative 'speed' documentation, I cannot think of any any enhancement appropriate for turtle doc audience. So I withdraw my request.
----------
resolution: -> works for me
stage: -> resolved
status: open -> closed
type: -> enhancement
_______________________________________
Python tracker
participants (3)
-
Alexander Belopolsky
-
Mark Lawrence
-
Terry J. Reedy