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

cabana: fix parts of chart widget not being redrawn #27742

Merged
merged 2 commits into from
Mar 30, 2023

Conversation

pd0wm
Copy link
Contributor

@pd0wm pd0wm commented Mar 30, 2023

Was changed in https://github.com/commaai/openpilot/pull/27727/files but has some side effects.

Screenshot 2023-03-30 at 09 37 57
(value marker is also not at correct mouse position)

@deanlee
Copy link
Contributor

deanlee commented Mar 30, 2023

my bad, does this happen with opengl disabled?
I changed all the scene()->invalidate({}, QGraphicsScene::ForegroundLayer) to update. it might be better to revert them all back.

@pd0wm
Copy link
Contributor Author

pd0wm commented Mar 30, 2023

It seems to only happen when openGL is disabled. Do you want to check for opengl to decide to call update or invalidate, or just revert everything back to how it was?

@deanlee
Copy link
Contributor

deanlee commented Mar 30, 2023

Revert them all is fine, it's not necessary to complicate the code for this little cpu saving.

@pd0wm pd0wm marked this pull request as draft March 30, 2023 11:39
@pd0wm pd0wm marked this pull request as ready for review March 30, 2023 13:03
@adeebshihadeh adeebshihadeh merged commit bec8cb1 into commaai:master Mar 30, 2023
pfeiferj pushed a commit to pfeiferj/pfeifer-pilot-patches that referenced this pull request Apr 11, 2023
* cabana: fix parts of chart widget not being redrawn

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

Successfully merging this pull request may close these issues.

3 participants