Closed TheBricktop closed 1 year ago
try different windows
Tried, still slow below expectations
it is not slow here.
I haven't seen this issue specifically. I am aware of #76 (backgrounded tabs won't tick anymore). I suspect this is a variation of that problem where a visible but unfocused tab has timer events throttled. If that is indeed the problem, fixing #76 will also fix this.
The blurriness is due to the fact that the games use a fixed canvas size, scaled up to fit the screen. This makes life easier because mouse inputs and rendering happen in the exact same coordinate space for all players.
It's not an inherent limitation - I should add an option for enabling variable canvas size.
There's now an indicator which tells you if the other player has hidden their window. It doesn't fundamentally solve the problem but at least provides some feedback to players, so I'll consider this resolved for now.
When testing the demos im getting like 1-2 fps on most of the demos even whem im running it on localhost, also the resolution is low and blurred, why is that? Tested on both firefox and edge.