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

CameraTriggerIndicator: use a qml based icon instead: #9513

Merged

Conversation

Davidsastresas
Copy link
Member

@Davidsastresas Davidsastresas commented Mar 4, 2021

There were performance issues when too many icons of this kind were displayed on the map, probably because of the old image based nature of the icon. This commit changes it to a qml rectangles based icon.

As discussed in issue #9501, the optimal way of addressing this would be by openGL shaders. This commit paints a camera icon based on qml rectangles instead, I am not familiarized with the openGL shaders approach right now, and I thought this could be a nice provisional fix.

The performance of QGC is not affected apparently anymore with this new icon. Some screenshots of the change:

Old icon:
old

New icon:
new

Let me know your thoughts, I will be happy to change the PR if needed. Thanks!

There was performance issues when too many
icons of this kind were displayed on the map,
probably because of the old image based nature
of the icon. This commit changes it to a qml
rectangles based icon
@Davidsastresas
Copy link
Member Author

I saw the new "move to stable" label. Let me know if you need me to rebase this or whatever. Thanks!

@DonLakeFlyer DonLakeFlyer merged commit 939810d into mavlink:master Mar 11, 2021
@DonLakeFlyer
Copy link
Contributor

@Davidsastresas You can cherry pick to a pull to the Stable branch?

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.

None yet

3 participants