cburschka / cadence

A strophe.js-powered XMPP web client for chatrooms.
6 stars 2 forks source link

UI becomes bogged down and flickery with big chat histories. #457

Open cburschka opened 7 years ago

cburschka commented 7 years ago

This is an unforeseen consequence of the flexbox redesign, and I'm afraid it pretty much blocks 2.0.

As messages accumulate, there appears to be some runaway rendering process that causes a) the contents of the message pane to be repeatedly repositioned vertically, and b) the entire UI to slow down, especially while typing.

While cadence 1.11 can be left on for weeks, accumulating thousands of messages without difficulty, cadence 2.0 becomes basically unusable after a few hundred. We can't release it like this.

The chief culprit, based on some experimenting, appears to be the text-wrapping algorithm being unable to make up its mind, and repeatedly altering the message pane's scroll-height.

cburschka commented 7 years ago

Need some more investigation. I can't currently reproduce it with decent hardware on chrome, and the laptop it happened on is a bit older.

If this is no longer a blocking issue, then we could finally push the long-delayed 2.0.0 release.