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

Wayland: Improve rendering performance #210

Closed
mark-kendall opened this issue Sep 11, 2020 · 1 comment
Closed

Wayland: Improve rendering performance #210

mark-kendall opened this issue Sep 11, 2020 · 1 comment
Assignees
Labels
task:developer Developer Task version:master Master Development Branch

Comments

@mark-kendall
Copy link
Member

b6e7e18 fixed alpha blending issues when using Wayland but as noted in the commit this is not the most performant solution and we really need to call wl_surface_set_opaque_region to allow the compositor to optimise rendering. The current solution is also not guaranteed to continue working in the future.

This requires:-

  • linking to the wayland library (which is not currently required elsewhere)
  • retrieving both the current compositor and surface from the QT wayland platform plugin
  • update the opaque region for window resizes
  • retrieving compositor/surface needs QPlatformNativeInterface defined - which requires Qt private headers
@mark-kendall mark-kendall added version:master Master Development Branch task:developer Developer Task labels Sep 11, 2020
@mark-kendall mark-kendall self-assigned this Sep 11, 2020
@mark-kendall mark-kendall changed the title Improve Wayland rendering performance Wayland: Improve rendering performance Sep 21, 2020
@mark-kendall
Copy link
Member Author

#218 created for underlying wayland compile time support. This ticket will track subsequent enhancements to actually call wl_surface_set_opaque_region

mark-kendall added a commit that referenced this issue Nov 17, 2020
- this should *help* with Wayland opacity issues but is not a complete
cure. Best case scenario; it also improves performance (as the
compositor knows it only needs to render the MythTV main window and
nothing else)

Refs #210 #216 #218
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task:developer Developer Task version:master Master Development Branch
Projects
None yet
Development

No branches or pull requests

1 participant