lmorchard / fx-maze

https://lmorchard.github.io/fx-maze/
0 stars 1 forks source link

performance #39

Open twobraids opened 7 years ago

twobraids commented 7 years ago

I've been monitoring the performance of the latest on my repo (https://twobraids.github.io/fx-maze/) and have found that it works great everywhere except Firefox on Android (49.0.2). After a few minutes into the game, it becomes unplayable and eventually FF crashes. This is in contrast to Chrome on the same device, where it remains nimble and responsive through an entire game. This is a very disappointing realization, and I don't know what to do about it.

Performance on all other platforms (Windows, Linux, OS/X, iOS) is fine regardless of the browser.

twobraids commented 7 years ago

I've discovered that the timer that degrades the color of the cursor is being turned on and off sometime many times per second. This is because the solution paths are hand drawn and not absolutely precisely accurate. The cursor may be on the correct path but encounter little discontinuities in the solution path lines that trigger the off-path timer. The solution is to redraw all the solution maps ensuring that they are precise.

twobraids commented 7 years ago

the changes from PR #40 improved performance on FF Android, but not enough to make it tolerable there. Chrome performs better, but not much. Is it that I just have old weak Android devices? The experience on iOS on this year's iPad/iPhone is really great.