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

Partial updates on remote textures #394

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ila-embsys
Copy link

Context

It is probably the relevant issue: zwin-project/zwin#17

The issue is slow texture updates. The slowing depend on a window size due to full window update instead of its partial damaged rectangles.

Summary

  • Added new one function znr_gl_texture_sub_image_2d that maps to the glTexSubImage2D on a remote side. It is done with the same way as existed znr_gl_texture_image_2d that maps to the glTexImage2D.
  • Added flags to the zn_view and the zn_view_child for indicating that a full texture was loaded, and it is ready for the partial updates.
  • The main changes are done in zna_base_unit_read_wlr_texture. It checks the flag and does full texture update or partial.

How to check the behavior

  1. Open Nautilus
  2. Open a folder where is several items
  3. Maximize the window
  4. Move the cursor through the item list
  5. Redrawing of selected items are queueing and finishes several seconds later after the cursor path. The request fixes it.

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.

1 participant