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

backend: xrender: cache the present region #1167

Merged

Conversation

absolutelynothelix
Copy link
Collaborator

a workaround for #1166. it doesn't fix the underlying issue (that's not known and needs to be investigated and ideally fixed) but reduces the probability of it's appearance. lmk if i got too paranoid with various checks and some of them are not really needed 😅

x: add the x_set_region function

it sets an x region to a pixman region

backend: xrender: cache the present region

to avoid creating and destroying it every frame

Copy link

codecov bot commented Jan 28, 2024

Codecov Report

Attention: 24 lines in your changes are missing coverage. Please review.

Comparison is base (d111e16) 36.66% compared to head (5a1990b) 36.46%.

Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff              @@
##           stable/11    #1167      +/-   ##
=============================================
- Coverage      36.66%   36.46%   -0.20%     
=============================================
  Files             50       50              
  Lines          11497    11516      +19     
=============================================
- Hits            4215     4199      -16     
- Misses          7282     7317      +35     
Files Coverage Δ
src/x.h 87.50% <ø> (ø)
src/backend/xrender/xrender.c 0.00% <0.00%> (ø)
src/x.c 42.85% <0.00%> (-1.69%) ⬇️

... and 2 files with indirect coverage changes

@absolutelynothelix
Copy link
Collaborator Author

huh, it seems that my clang-format formats code differently 🤔

@yshui
Copy link
Owner

yshui commented Jan 28, 2024

@absolutelynothelix hi, can you change the target branch to stable/11?

it sets an x region to a pixman region
to avoid creating and destroying it every frame
@absolutelynothelix absolutelynothelix changed the base branch from next to stable/11 January 28, 2024 17:36
@yshui
Copy link
Owner

yshui commented Jan 28, 2024

There is a bit of code duplication but since this is a temporary fix I think it's fine.

@yshui yshui merged commit fc1d1d4 into yshui:stable/11 Jan 28, 2024
12 checks passed
@absolutelynothelix absolutelynothelix deleted the xrender-cache-present-region branch January 29, 2024 13:12
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.

2 participants