Add documentation comment explaining magic number in instant speed

Co-authored-by: enaut <290005+enaut@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-01-01 20:41:52 +00:00
parent c806570156
commit f5140361d5

View File

@ -148,6 +148,7 @@ pub fn turtle_main(args: TokenStream, input: TokenStream) -> TokenStream {
.with_commands(turtle.build()); .with_commands(turtle.build());
// Set instant speed to execute all commands immediately // 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)); app.set_all_turtles_speed(turtle_lib::AnimationSpeed::Instant(1000));
// Execute all commands instantly (no rendering needed) // Execute all commands instantly (no rendering needed)
@ -238,6 +239,7 @@ pub fn turtle_main(args: TokenStream, input: TokenStream) -> TokenStream {
.with_commands(turtle.build()); .with_commands(turtle.build());
// Set instant speed to execute all commands immediately // 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)); app.set_all_turtles_speed(turtle_lib::AnimationSpeed::Instant(1000));
// Execute all commands instantly (no rendering needed) // Execute all commands instantly (no rendering needed)