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

Fix rendering artifacts #215

Merged
merged 6 commits into from Oct 31, 2022
Merged

Fix rendering artifacts #215

merged 6 commits into from Oct 31, 2022

Conversation

fjvallarino
Copy link
Owner

@fjvallarino fjvallarino commented Oct 21, 2022

In some cases, and apparently some configurations (it did not happen on my previous laptop), rendering artifacts would appear as a consequence of an optimization that avoids rendering if:

  • It was not requested by a widget
  • A mouse/keyboard action (click/key press) did not happen

In particular, an idle window is not re-rendered; the same happens with mouse movement events which do not trigger a explicit render request from a widget.

As a workaround, once a frame render is requested, the library will render the next step too. It still does not render all the frames to reduce CPU usage, but incurs a (small?) penalty. I will investigate further solutions, but this seems to solve the issue for the time being.

@fjvallarino fjvallarino merged commit d1ddcc2 into main Oct 31, 2022
@fjvallarino fjvallarino deleted the fix/rendering-artifacts branch October 31, 2022 10:57
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

1 participant