Skip to content

Comments

fix(recording): replace busy-wait loop with time.sleep#32

Open
abrichr wants to merge 1 commit intomainfrom
fix/recording-busywait
Open

fix(recording): replace busy-wait loop with time.sleep#32
abrichr wants to merge 1 commit intomainfrom
fix/recording-busywait

Conversation

@abrichr
Copy link
Member

@abrichr abrichr commented Feb 16, 2026

Summary

  • Replace while True: pass with while True: time.sleep(0.5) in record_waa_demos.py
  • The busy-wait loop was burning an entire CPU core during recording, contributing to system sluggishness

Test plan

  • Run record_waa_demos.py on Windows — CPU usage should drop significantly during recording

🤖 Generated with Claude Code

The `while True: pass` loop burned an entire CPU core during recording.
Replace with `time.sleep(0.5)` to yield CPU while waiting for Ctrl+C.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant