Offload sampling
Dreaming-Codes opened this issue · 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?
Yes, should be possible! I'm gonna take a look at it.
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!
I think that this is the equivalent of nodejs workers https://gjs.guide/guides/gio/subprocesses.html