sindresorhus / Plash

💦 Make any website your Mac desktop wallpaper
https://sindresorhus.com/plash
MIT License
3.47k stars 129 forks source link

Static mode #15

Open sindresorhus opened 4 years ago

sindresorhus commented 4 years ago

Some people have commented that this is wasteful. The reality is that it depends. You can load resource hungry websites or you can load simple static websites. Simple static websites take up very little CPU time.

However, I had this idea for people that just needs to show a static website. Instead of keeping the web view running the whole time, Plash could load the website in the web view, capture a screenshot, and then set the screenshot as the desktop view instead of the web view. That way it would look just as it would before, but it would be a static view of the web site. The reload interval would take care of keeping it up to date.

This would be opt-in.

Thoughts?

What should such an option be called?

amitmerchant1990 commented 4 years ago

What should such an option be called?

"Refresh Interval"?

sindresorhus commented 4 years ago

@amitmerchant1990 There's already is a "Reload Interval" option. The question is about what the static mode option should be called (including reasoning).

amitmerchant1990 commented 4 years ago

How about "Use as a Snapshot"? The word "snapshot" means impression of something at a point of time which I think is perfectly suitable for this particular feature. This, however, doesn't describe its changing behaviour on the interval. So, I'll leave it upto you.

firrae commented 4 years ago

@sindresorhus could the screen shotting process not take up more CPU cycles making intermittent performance issues or is that fairly performant now?

sindresorhus commented 4 years ago

@firrae The screenshotting would happen only on the interval ticks, which is at maximum every second, but more often every minute, so it would be more efficient, yes.