by crazypython · 5y ago · 0 comments
It pings a random server in each region to find the nearest region, which is found by finding the server that replies first, since nearer servers are closer. Then it pings all servers in a region to find the number of players. It randomly picks from the server with the two least number of players. Then the JavaScript transparently pre-loads game resources (mockups.json and skillmap.json) by appending a <link rel="preload"> to the <body>. That way, once the game starts, "fetch" will find preloaded resources.
80% of players said it was very fun.
Also congrats on the fast load time! Slow JS is my biggest peeve about the modern web. My "daily drivers" are all under-powered hardware -- I have not spent more than ~$250 on a computer in like a decade -- which 1) forces me to develop lightweight & quick frontends, and 2) reveals just how awful so many websites are for anyone who isn't using the maxed-out MacBook Pro that the original developer used.
And sure there are exceptions, some programs just need a beefy machine, but many times there are mundane things like fi. a dozen unnecessary redraws of a list that go unnoticed on the latest threadripper with RAID-0 NVMe disks, but make the UI jump and twitch in an irritating way on slower hardware.
We've ended up collectively trading availability of applications for performance I'd say because of things like electron.
And yes it is a tradeoff.
KDE and Linux however is still blazing fast so there's still some[1] speed advantage.
[1]: and sometimes, like with git, command line applications and compiling - a whole lot.
This accurate statement is correct.
> 80% of players said it was very fun.
Curious how you got this statistic, do you ask this in-game or did you do a case study with some friends?
Btw I just played and found the FPS to be quite low (there was a lot of things firing on me). This was Firefox on Windows. (Edit: tried Chrome and there is a visible difference, so you seem to have a bottleneck on FF)
I suggest making that script async, so it loads after defer scripts, which you should add to your main game scripts.
> Curious how you got this statistic, do you ask this in-game or did you do a case study with some friends?
With friends and based on online feedback.