0

Using Turtle Graphics and Python -- I have a group of 10 basic graphic elements on the screen at the same time and it runs sluggish. As soon as some of the elements "leave" the graphic window, it speeds up considerably. Is there a way to maintain the same frame-rate, regardless of the number of graphic elements?

ggorlen
  • 44,755
  • 7
  • 76
  • 106
netrate
  • 423
  • 2
  • 8
  • 14
  • Does this answer your question? [How to fix inconsistent frame rate (speed) in python turtle](https://stackoverflow.com/questions/55495581/how-to-fix-inconsistent-frame-rate-speed-in-python-turtle) – ggorlen Aug 21 '22 at 06:48

1 Answers1

1

You should say:

screen = turtle.Screen()
screen.tracer("I recommend you do 0") # Make sure you do this at the beginning.

By using screen.tracer() you can control the frame rate

AABULUT
  • 50
  • 4
  • Do I need to add in a time.sleep as well? – netrate Feb 08 '22 at 19:46
  • 1
    No, you don't have to add time.sleep() for more information you can check out this link: https://docs.python.org/3/library/turtle.html And add the screen.tracer() at the beginning – AABULUT Feb 09 '22 at 12:10