Metronome: Efficient CPU Usage
Registered by
Brian Hilmers
A more CPU efficient metronome.
Blueprint information
- Status:
- Complete
- Approver:
- Brian Hilmers
- Priority:
- Essential
- Drafter:
- Brian Hilmers
- Direction:
- Approved
- Assignee:
- Brian Hilmers
- Definition:
- Approved
- Series goal:
- Accepted for trunk
- Implementation:
- Implemented
- Milestone target:
- 2.1
- Started by
- Brian Hilmers
- Completed by
- Brian Hilmers
Related branches
Related bugs
Sprints
Whiteboard
Right now the metronome looks at the system timer many, many times to determine when to sound the next click. There must be a better way to do this and maintain timing accuracy. The current code destroys lower powered systems.
Update (6-15-12): I've got some code that drops the CPU usage down to almost nothing. I also discovered a slight memory leak and that seems to be patched up nicely after jogging a few lines around. Should have the code pushed soon. Going to play around some more.
(?)