material-you-theme icon indicating copy to clipboard operation
material-you-theme copied to clipboard

Offload sampling

Open Dreaming-Codes opened this issue 1 year ago • 3 comments

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?

Dreaming-Codes avatar Sep 17 '22 21:09 Dreaming-Codes

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

ardjuh avatar Sep 21 '22 06:09 ardjuh

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!

ardjuh avatar Sep 23 '22 17:09 ardjuh

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

Dreaming-Codes avatar Sep 23 '22 17:09 Dreaming-Codes