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

Tracing performance #1

Closed
koekeishiya opened this issue Nov 2, 2023 · 3 comments
Closed

Tracing performance #1

koekeishiya opened this issue Nov 2, 2023 · 3 comments

Comments

@koekeishiya
Copy link
Contributor

koekeishiya commented Nov 2, 2023

Firstly, thank you for taking the initiative in creating these kinds of applications.

I have some old border code laying around that uses most of the private events that you do in this project, and I noticed a fair bit of difference in the delay when moving a window around the screen. I've attached two gifs; the first is my throwaway proof of concept and the other is commit 110b01c

old poc:
throwaway

this project:
jankborders

I haven't really looked at the code in detail, so can't really tell why there is that much of a difference.

My old throwaway project also uses SLSRegisterNotifyProc(global_handler, 806, NULL); to respond to window move events to re-align the border.

@FelixKratz
Copy link
Owner

Thanks for the heads up. I am not dragging windows with the mouse that much myself (thanks to your awesome tools).

This was probably due to my border update code being too conservative. I have implemented a separate function to handle the window move event now and it seems to be on par with what you have shown in your gif:

test.mp4

@koekeishiya
Copy link
Contributor Author

That looks a lot better yeah.

@FelixKratz
Copy link
Owner

Contained in v1.0.1 released just now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants