feat(tracker): show CPU load percentage in the song panel

This commit is contained in:
5684185+vsariola@users.noreply.github.com
2025-06-17 17:59:54 +03:00
parent 1a13fadd75
commit 340620ed49
5 changed files with 34 additions and 1 deletions

View File

@ -69,6 +69,7 @@ type (
linkInstrTrack bool
voiceLevels [vm.MAX_VOICES]float32
cpuLoad float64
signalAnalyzer *ScopeModel
detectorResult DetectorResult
@ -343,6 +344,7 @@ func (m *Model) ProcessMsg(msg MsgToModel) {
}))
}
m.panic = msg.Panic
m.cpuLoad = msg.CPULoad
}
if msg.HasDetectorResult {
m.detectorResult = msg.DetectorResult
@ -377,6 +379,8 @@ func (m *Model) ProcessMsg(msg MsgToModel) {
}
}
func (m *Model) CPULoad() float64 { return m.cpuLoad }
func (m *Model) SignalAnalyzer() *ScopeModel { return m.signalAnalyzer }
func (m *Model) Broker() *Broker { return m.broker }