kipraske / web-brogue

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

Moving the mouse very quickly on the sidebar exits to lobby #49

Open flend opened 8 years ago

flend commented 8 years ago

This is because each mouse movement on the sidebar causes the entire sidebar to be redrawn and sent to the client. The data fills one of the internal buffering stages (probably the websockets server-side) which causes the game to appear unresponsive and a quit event to be sent.

The correct fix here is to redo the brogue sidebar redraw code refreshSideBar() to use double-buffering and only send the deltas.

Other workarounds could be to limit the speed of sending mouse-entered-cell events, but this would lower the overall responsiveness of the system.

flend commented 8 years ago

https://github.com/kipraske/web-brogue/pull/50

tomford commented 7 years ago

This is now resolved in a previous merge. Hopefully fixed in brogue itself at some point.