VBAndCs / sVB-Small-Visual-Basic

Small Visual Basic (sVB) is an educational programming language, created by Eng. Mohammad Hamdy as an evolved version of Microsoft Small Basic (SB). It is meant to be easier and more powerful at the same time, to introduce programming basics to kids and beginners of any age, provided that they can use the English keyboard on the Windows OS.
Other
233 stars 16 forks source link

Turbo speed resp. mode for the turtle ... #81

Closed boa2145 closed 2 months ago

boa2145 commented 2 months ago

Hello Mohammad,

sorry for taking up your time: I suggest introducing a "turbo mode" for the turtle, because sometimes it's very useful. When drawing with the turtle, there are sometimes situations where, for example, you want to draw a circle or semicircle in small steps, but it's too slow, even if the speed is set to 50. These can also be auxiliary lines that you need to draw a complicated geometric shape in order to be able to draw pixel-precisely. Scratch and Snap! have a special "turbo mode" for the turtle, which is very good and helpful. Even complex shapes can then be drawn with the blink of an eye. Is it possible to implement such a "turbo mode" for the turtle in Small Visual Basic? That would be really great!!!

Best regards ... Gregor

VBAndCs commented 2 months ago

Hi Gregor, As I've illustrated before, the turbo mode of the turtle is achieved by: Turtle.UseAnimation = False This actually makes the turtle moves instantaneously, regardless of the Turtle.Speed value. There is nothing more to do. If the drawing is slow, this means it is complex with many turns and thousands of drawn short lines. The only thing you can do to fix that is to buy a modern PC with a 14th generation processor and advanced graphics card. But you may also make your current PC faster by changing the power plan from Balanced to High performance, and choose adjust for best performance from the advanced system settings. Also make sure you set the Bios settings to enable hyper threading. Finally, setting up the windows on an SSD or M2 will make if faster. Thanks.


From: Gregor @.> Sent: Sunday, September 1, 2024 8:45 AM To: VBAndCs/sVB-Small-Visual-Basic @.> Cc: Subscribed @.***> Subject: [VBAndCs/sVB-Small-Visual-Basic] Turbo speed resp. mode for the turtle ... (Issue #81)

Hello Mohammad,

sorry for taking up your time: I suggest introducing a "turbo mode" for the turtle, because sometimes it's very useful. When drawing with the turtle, there are sometimes situations where, for example, you want to draw a circle or semicircle in small steps, but it's too slow, even if the speed is set to 50. These can also be auxiliary lines that you need to draw a complicated geometric shape in order to be able to draw pixel-precisely. Scratch and Snap! have a special "turbo mode" for the turtle, which is very good and helpful. Even complex shapes can then be drawn with the blink of an eye. Is it possible to implement such a "turbo mode" for the turtle in Small Visual Basic? That would be really great!!!

Best regards ... Gregor

— Reply to this email directly, view it on GitHubhttps://github.com/VBAndCs/sVB-Small-Visual-Basic/issues/81, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALQ5MVWBACP2QM55RSE6QO3ZULH4FAVCNFSM6AAAAABNOUQDW6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ4TSMZRGQ3TGOA. You are receiving this because you are subscribed to this thread.

[https://s-install.avcdn.net/ipm/preview/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Virus-free.www.avast.comhttps://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail

boa2145 commented 2 months ago

Good evening Mohammad,

I tried the statement "Turtle.UseAnimation = False". Great, it worked, the turtle was no longer animated and the drawing appeared immediately. It is sometimes important in the test and development phase of a drawing that the turtle does not animate, because otherwise the whole procedure during testing would take too long and be tiring. Okay, then that is probably the same result as the turbo mode in Snap! and Scratch. Thanks for your help.

Bye ... Gregor :)