Allow for quicker updates of OSD element data #11207
Draft
+37
−9
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This allows X elements to be updated per OSD cycle. From 1 element (current behaviour) to 15 elements. This should allow for plenty of data update speed without causing unnecessary delays or overheads. This defaults to 5, which should be a good value for most OSDs. The OSD is updated at 250Hz, on a low priority, by the task scheduler. The elements are updated at 1/4 this frequency (62.5Hz).
Update rates based on current update method
Update rates based on the new default of 5 elements per cycle
So even on the default setting
5, having 26-30 elements. They would update 10 times per second. Fast enough for any OSD element.Alternative option to #11206
Fixes #9907