Comments (6)
I wonder how many chat messages are you talking about, i never saw such issue. But you are right, those messages are never deleted until the page is refreshed.
from neko.
When there's enough scrollable text in the chatroom filling roughly about three screens, the lag begins, a little at first and it gets progressively worse, like there's some kind of memory leak happening.
It happens to me and I've confirmed it with others when I host watchparties, and it doesn't seem to make a difference how many people are in the room, whether it's one or a dozen or more people.
Thank you for any help on this.
from neko.
Yeah, that lag must be only on the client side because no chat is stored or processed on the server. We could remove old messages, but that would be inconvenient for people that want to browse session history. Or we could only display messages that are actually visible in user's viewport and save others to some variable. But that is quite a lot of work.
from neko.
I will try to wrap the chat into a virtual scroller instead of a v-for over history. This should fix it, but would add a dependency.
from neko.
Thank you, or maybe just an option to set a limit for text history that clients can scroll through, unless that's what you mean. It's a problem caused on the client side yes, since anyone simply reloading the page fixes it for them until text for them accumulates again to the point of lag. As always, much appreciated. I love this app and love to see it improved and you guys are great.
from neko.
Just to note, I counted the lines by typing a number on each line followed by letter a-z, and it's not a matter of total text, but of number of chat messages sent, number of entries, and it's about at 220 that the lag starts to become noticeable, or at least noticeable enough.
In other words, at even just a single character per chat message, at around 220 the lag will be there, but if I paste 10 lines per chat message, about 10 times more text can be in the chatroom before lag starts getting noticeable.
Thanks again.
from neko.
Related Issues (20)
- How can I embed the Neko desktop into web page without login prompt coming up for viewers? HOT 4
- feature request: support 2 Factor Authentication HOT 2
- Vue2 is deprecated HOT 2
- rpi4 install HOT 5
- how to mount browser profile as volume? HOT 2
- Black screen issue on Ubuntu VM HOT 5
- Integrate a third-party chat room embed as the standard chat
- Feature: User activity HOT 8
- Project does not support Chinese, can only copy, cannot edit, and chat interface does not support Chinese input HOT 6
- Unable to use in k8s environment HOT 3
- Any ideas or thoughts about mapping printers HOT 3
- Blank screen with local non-docker neko chromium HOT 2
- Support time-limited static-auth-secret TURN authentication for WebRTC HOT 1
- v3 rewrite HOT 18
- Where is the clipboard button for Firefox-browsers? HOT 6
- Neko passwords revealed in websocket http get for m1k1o/neko:firefox - Debugging enabled by default? HOT 2
- Blank screen with microsoft-edge image HOT 8
- CDP port not getting forwarded to host HOT 2
- Is there anyway to set this up without Nat Hairpinning? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neko.