avanisubbiah / material-you-theme

Applies generated libadwaita theme from wallpaper using Material You
GNU General Public License v3.0
253 stars 19 forks source link

Offload sampling #57

Open Dreaming-Codes opened 2 years ago

Dreaming-Codes commented 2 years ago

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 commented 2 years ago

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

ardjuh commented 2 years ago

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 commented 2 years ago

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