Paths should be (more) efficient #50

Open
opened 2025-07-01 19:43:52 +00:00 by scott · 0 comments
Owner

If a turtle is "walking" in a straight line, say, 4 pixels per tick for 100 pixels, we would end up telling p5 to draw 25 4px lines instead of one single 100px line. This is inefficient.

It's reasonably easy to do the math here, so do it. (In pkg/ludus.js.)

If a turtle is "walking" in a straight line, say, 4 pixels per tick for 100 pixels, we would end up telling p5 to draw 25 4px lines instead of one single 100px line. This is inefficient. It's reasonably easy to do the math here, so do it. (In `pkg/ludus.js`.)
scott added the
optimization
label 2025-07-02 16:06:22 +00:00
scott added this to the Post-CC2 milestone 2025-07-02 17:18:07 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: twc/rudus#50
No description provided.