kipraske / web-brogue

Play brogue in a web browser
GNU General Public License v2.0
20 stars 17 forks source link

Sometimes js fails on mobile devices #34

Closed kipraske closed 8 years ago

kipraske commented 9 years ago

In particular in firefox on mobile there is an unknown exception somewhere. The socket connection IS supported but doesn't work well.

kipraske commented 9 years ago

Maybe it is just the data transfer is too high and the phone craps out? That would explain the inconsistency.

kipraske commented 8 years ago

This is probably due to the single-threaded nature of firefox and other mobile browsers. It works pretty well on the android browser as well as chrome.

Generally if we have a ridiculous amount of processing in the javascript and data processing, we won't have much left over for expensive DOM updates. In chrome we have a thread devoted to updating and repainting the DOM so it goes much much better. I am not entirely sure if a HTML5 pixi.js solution would remedy this, but maybe.