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

Offload sampling #57

Open
Dreaming-Codes opened this issue Sep 17, 2022 · 3 comments
Open

Offload sampling #57

Dreaming-Codes opened this issue Sep 17, 2022 · 3 comments

Comments

@Dreaming-Codes
Copy link

Hi,

I'm using Variety for changing wallpapers and this extension make my shell lag every time that the wallpaper change because it have to resample the wallpaper.

Is it possible to offload to a different thread (using workers) the image elaboration to fix this issue?

@ardjuh
Copy link
Collaborator

ardjuh commented Sep 21, 2022

Yes, should be possible! I'm gonna take a look at it.

@ardjuh
Copy link
Collaborator

ardjuh commented Sep 23, 2022

I don't think it's possible to offload the work to a different thread, but I have made the extension a lot faster. Could you test it and see if it doesn't lag anymore. You can download it from https://github.com/ardjuh/material-you-theme.

If anyone knows how to execute gjs on a different thread in gnome, let me know!

@Dreaming-Codes
Copy link
Author

I think that this is the equivalent of nodejs workers https://gjs.guide/guides/gio/subprocesses.html

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