Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #9927

Re: turtles slowing down

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'bug': 0.02; 'newbie': 0.03; 'received:verizon.net': 0.07; 'terry': 0.07; 'python': 0.08; 'canvas': 0.09; 'loop.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'tkinter': 0.09; 'tracker': 0.09; 'turtle': 0.09; 'underlying': 0.09; 'wrote:': 0.15; '(multiple': 0.16; 'reedy': 0.16; 'looked': 0.16; 'pm,': 0.16; 'issue.': 0.19; 'jan': 0.19; 'memory': 0.21; 'header:In-Reply-To:1': 0.22; 'code.': 0.22; 'specifically': 0.26; 'changing': 0.28; 'random': 0.28; 'module': 0.30; 'at.': 0.30; 'fun.': 0.30; 'this.': 0.31; 'hi,': 0.31; 'lines': 0.31; 'actually': 0.33; 'to:addr:python- list': 0.34; 'header:X-Complaints-To:1': 0.34; 'header:User- Agent:1': 0.34; 'there': 0.34; 'be,': 0.35; 'purely': 0.35; 'probably': 0.35; 'running': 0.35; 'issue': 0.37; 'some': 0.37; 'using': 0.37; 'received:org': 0.38; 'subject:: ': 0.38; 'something': 0.38; 'should': 0.39; 'header:Mime-Version:1': 0.39; 'to:addr:python.org': 0.39; 'might': 0.39; 'actively': 0.40; 'maintaining': 0.40; 'your': 0.60; 'straight': 0.66; 'became': 0.67; 'goals': 0.68; 'strange': 0.68; 'steady': 0.80; 'subject:down': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: turtles slowing down
Date Tue, 19 Jul 2011 22:29:57 -0400
References <d9ff7419-fed9-4e8f-b02f-2afd63e6d7d7@g3g2000prf.googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding quoted-printable
X-Gmane-NNTP-Posting-Host pool-74-109-121-73.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11
In-Reply-To <d9ff7419-fed9-4e8f-b02f-2afd63e6d7d7@g3g2000prf.googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1275.1311129011.1164.python-list@python.org> (permalink)
Lines 29
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1311129011 news.xs4all.nl 23836 [2001:888:2000:d::a6]:43082
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:9927

Show key headers only | View raw


On 7/19/2011 6:02 PM, EricC wrote:
> Hi,
>
> I am a newbie - I have been teaching myself Python 3 since a few
> months ago. My “self assignments” include some purely for fun. Among
> them was using the turtle module to have multiple turtles running
> around on the screen.
>
> Recently one such fun turtle “project” showed strange behavior that I
> cannot understand – while I achieved my goals (multiple turtles
> oscillate along random straight lines while changing colors), there
> was a steady slowing down of turtles as time goes. Actually they
> became so slow it is not even fun to look at.

There is a bug issue on the tracker that may be related to this. 
Unfortunately, the reviser of the turtle module is not actively 
maintaining it any more, though this might be an underlying tkinter or 
tk issue. Probably something is not being deleted that should be, or you 
are simply overloading the canvas memory and re-compute loop.

I have not specifically looked at your code.

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

turtles slowing down EricC <ec97005@gmail.com> - 2011-07-19 15:02 -0700
  Re: turtles slowing down Terry Reedy <tjreedy@udel.edu> - 2011-07-19 22:29 -0400

csiph-web