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

Adding the borderless mod cuts performance in half... #20

Closed
cpm9 opened this issue Dec 5, 2021 · 2 comments
Closed

Adding the borderless mod cuts performance in half... #20

cpm9 opened this issue Dec 5, 2021 · 2 comments

Comments

@cpm9
Copy link

cpm9 commented Dec 5, 2021

Big performance hit ~140 fps down to around 60 fps

Using borderless mining 1.1.1-1.18
fabric-api 44.0
sodium 0.4.0 alpha 5

before adding borderless
without-borderless

after adding it
with-borderless

You can see a big increase in the proportion of the updateDisplay (light blue) part of the pie chart

@comp500
Copy link
Owner

comp500 commented Dec 5, 2021

Unfortunately it's unlikely that I'll be able to do anything about this - windowed borderless is fundamentally slower since it has to pass through the compositor.

Convincing Windows to enable Fullscreen Optimisations (a middle-ground between exclusive and windowed borderless) might help, and it's possible that the changes in #19 will do that. But I don't really know; fullscreen/borderless window detection is built on a bunch of broken heuristics that vary between graphics drivers, where there's often no way to get it to do what you want.

@cpm9
Copy link
Author

cpm9 commented Feb 4, 2022

Largely improved in newer versions, closing ticket

@cpm9 cpm9 closed this as completed Feb 4, 2022
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

No branches or pull requests

2 participants