Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AC gauges are jumpy on Brief and Overview pages #601

Open
blammit opened this issue Dec 8, 2023 · 15 comments
Open

AC gauges are jumpy on Brief and Overview pages #601

blammit opened this issue Dec 8, 2023 · 15 comments
Assignees
Labels

Comments

@blammit
Copy link
Contributor

blammit commented Dec 8, 2023

There's something jumpy about the AC gauges in general, as reported in slack. Needs investigation.

@blammit
Copy link
Contributor Author

blammit commented Dec 8, 2023

Revisit this when issues concerning the gauge calculations in #532 are addressed.

Also, some relevant points:

  • The max seen value (used as the max value for the AC input gauges) refers to the maximum seen for any AC input, but it should keep a per-input maximum value instead, as the max for one input may be quite different to that for another.
  • It's quite possible that Global.acInputs.model is not needed at all, as the Overview and Brief pages only ever use the currently active AC input, and the model is not used in the Device List either.

@chriadam
Copy link
Contributor

chriadam commented Dec 8, 2023

Might also be an animation thing, see e.g. https://github.com/victronenergy/gui-v2/blob/main/components/controls/Slider.qml#L67

I'm currently working on a shader-based progress arc implementation which should solve a lot of problems, but let's see...

@chriadam
Copy link
Contributor

chriadam commented Dec 8, 2023

#602 still need to reimplement the ProgressArcs and properly test performance on device etc.

@chriadam
Copy link
Contributor

Also related to setting appropriate min/max values for gauges, avoiding dynamic scaling.

@chriadam
Copy link
Contributor

Marking as low priority, as I don't think this is a showstopper for 1.0.0.

@kwindrem
Copy link
Collaborator

It's pretty twitchy on a system with minimal load. The AC input gauge swings from max to min with only a 1 or 2 watt change. I'd say something needs to be done for 1.0.0.

It's quite possible that a system with more load produces more stable gauges but have not tried it. Still, it's very distracting with minimal load.

@chriadam
Copy link
Contributor

chriadam commented Jan 31, 2024

Ah, so this is because of the min/max values not being set properly for the gauges (#532)? Thus, because it's using the "previously seen min / max" values as the rails, it is jumping large amounts visually in reaction to small actual changes? Or am I misunderstanding?

@kwindrem
Copy link
Collaborator

Yes, that's my interpretation of what's going on.

@jpetrell
Copy link
Contributor

jpetrell commented Apr 24, 2024

I am tempted to close this one and file specific issues later if the rewritten autoranging + manual min/max logic planned in #532 is not enough? Or at least drop this from 1.0.0 Milestone.

@blammit
Copy link
Contributor Author

blammit commented Apr 26, 2024

Yep, let's close this, since #532 addresses these issues. This was originally filed before all of that work was discussed in further detail.

@blammit blammit closed this as completed Apr 26, 2024
@chriadam
Copy link
Contributor

The only other thing which remained was ensuring that we didn't allow two property writes in quick succession to cause an animation jump, IIRC. See https://github.com/victronenergy/gui-v2/blob/main/components/controls/Slider.qml#L67 for where that was fixed for slider (which we use in the brief page monitor panel data load visualiser IIRC).

@blammit
Copy link
Contributor Author

blammit commented Apr 28, 2024

Ah, I see, #602 is still in draft mode and should resolve this? Okay, I'll remove the 1.0.0 tag and leave this open.

@blammit blammit reopened this Apr 28, 2024
@blammit blammit removed this from the Version 1.0.0 milestone Apr 28, 2024
@chriadam
Copy link
Contributor

Well, #602 is different, not really related to this. It was an attempt at a performance fix, but proved not to help.

@blammit
Copy link
Contributor Author

blammit commented Apr 29, 2024

Oh, I see, so this is currently fixed for the horizontal gauges / sliders but not the arc gauges?

@chriadam
Copy link
Contributor

I believe so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants