From f5140361d5b5af70f069b78c748187c0e2efb9a0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 1 Jan 2026 20:41:52 +0000 Subject: [PATCH] Add documentation comment explaining magic number in instant speed Co-authored-by: enaut <290005+enaut@users.noreply.github.com> --- turtle-lib-macros/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/turtle-lib-macros/src/lib.rs b/turtle-lib-macros/src/lib.rs index c630ea7..5ed3835 100644 --- a/turtle-lib-macros/src/lib.rs +++ b/turtle-lib-macros/src/lib.rs @@ -148,6 +148,7 @@ pub fn turtle_main(args: TokenStream, input: TokenStream) -> TokenStream { .with_commands(turtle.build()); // Set instant speed to execute all commands immediately + // Use a high draw call limit (1000) to ensure all commands execute in one frame app.set_all_turtles_speed(turtle_lib::AnimationSpeed::Instant(1000)); // Execute all commands instantly (no rendering needed) @@ -238,6 +239,7 @@ pub fn turtle_main(args: TokenStream, input: TokenStream) -> TokenStream { .with_commands(turtle.build()); // Set instant speed to execute all commands immediately + // Use a high draw call limit (1000) to ensure all commands execute in one frame app.set_all_turtles_speed(turtle_lib::AnimationSpeed::Instant(1000)); // Execute all commands instantly (no rendering needed)