For some reason when typing (e.g. adding/editing a nightbot command, etc.) on the desktop website, the typing is super laggy. After pressing a key on my keyboard, it can take multiple seconds before the typed character actually appears on the screen.
I mainly use Chrome, so I thought maybe it was a browser extension or something, but the same thing happens in Microsoft Edge, a browser I don’t normally use.
Let me know if there is any other info you need on my end!
I can’t reproduce that locally. Is there something different about your keyboard/computer setup? Chrome and Edge are also the same browser. What happens on Firefox?
My setup is just an Acer 5 laptop, I use the keyboard built into the laptop.
On firefox the lagginess is a lot less pronounced, but still there. At normal typing speeds it is barely noticeable, but if I spam type many keys all at once for a while, then after I stop typing there is a noticeable delay before the displayed text fully catches up.
Got it. The only other suggestion is to check your CPU usage to see if it’s at high load. The current version of the website does have some performance regressions due to an upstream UI library not being performant enough during re-rendering (it computes styles in scripting versus stylesheets). Shy of memoization everywhere, there’s no immediate fix here outside of replacing the library. While we will do that at some point, it’s not considered an immediate priority.
My CPU usage is pretty low, hovering between 6-10% in task manager. When typing in the webpage, the CPU usage does shoot up to like 34%.
As you say, I think it’s probably because of the UI library.
Here is an example of what the profile looks like when I wait 1 second, and then hold down the “g” key for 3 seconds. After I release the key, it takes approximately 7 seconds for the display to catch up. A total of 83 letters are typed.
Is there a way to get the old UI back? because i also have nightbot freezing/pausing when i stream & when not streaming, which it never did before the UI update got pushed. I use the nightbot app{also tried just using it in opera browser with the same result}, I have a Ryzen 7 5800X3D with a 3080 FE gpu & 64gb of ram {when streaming, my cpu usage doesnt go over 10%}
The UI doesn’t affect Nightbot itself. You do not need to have the app open for Nightbot to operate, and the app performance is negligible when you’re not actively using the app.