I did some math using another miner: https://www.coinhive.com/ Coinhive makes it clear it takes 30% of whatever was mined by the users, which makes it somewhat more trustworthy in my head.
The currency seems to be mined at ~1 monero per 10 seconds (used few recent blocks from https://chainradar.com/xmr/blocks) to calculate it. And single monero is ~350$ today. So, let’s say 35$ per second or roughly 3M$ per day (for whole currency running at ~600M hashes per sec right now)
https://coinhive.com/ has a visual script which after turning on shows digging speed. For reasonable reference, I left it at 1 thread running 50% - this nets me 5 hashes per second on a medium class laptop. I have no idea how many open browser windows are there running ogs, but judging by the number of open live games, and with a little extra added, let’s assume 400 windows on average. That gives us 2000 hashes per second.
70% * (3M$/day) * (2K / 600M) = ~7$ per day
…or 200$ per month
It’s definitely not a deal breaker, and browser mining has a sort of shady reputation. I’m not sure if it’s worth the risk of scarying users with anti-virus messages. On the other hand it’s a fairly un-intrusive form of monetizing a website, which seems suitable to the nature of OGS. 7$ per day, should at least cover lunch expenses for @anoek. The solution makes it possible for custom throttling. Why not leave the slider and let users decide how much CPU would they like to dedicate to OGS? What do you think?