Skip to content

Commit

Permalink
Reduce the update frequency of the log panel to 5hz (#734)
Browse files Browse the repository at this point in the history
The update frequency of the log panel was erroneously set to every 5ms
(200hz). This was causing a lot of unnecessary processing that was
discovered during QML profiling.

This should help the app run significantly better on lower end hardware.
  • Loading branch information
keithel-qt authored Sep 14, 2022
1 parent 10726b7 commit b9a1c84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/LogPanel.qml
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ Item {
}

Timer {
interval: Globals.currentRefreshRate
interval: Utils.hzToMilliseconds(Globals.currentRefreshRate)
running: parent.visible
repeat: true
onTriggered: {
Expand Down

0 comments on commit b9a1c84

Please sign in to comment.