You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While verifying the fix for #1620, I noticed things were still on the slower side, but this time only when i was typing on the first line of the terminal. Sorry for piling on with another one of these 😞
I had initially thought this one was fine because I had been remembering that the end line was exclusive, not inclusive. However, this is not the case, so when editing the first line and only the first line, rowEnd || this._terminal.rows - 1 evaulates to this._terminal.rows - 1 because rowEnd is falsy, triggering a full viewport refresh.
I've verified that tightening up the check fixes the slowdown for this case. Will send a PR shortly.
As a side note, I was surprised by the amount of time spent rendering the blank lines at the bottom of my terminal. This may be specific to the configuration of my normal setup (there's some transparency which results in compositing of the layers), but if it's not being done already, it might be worth trying to bypass foreground drawing for space characters altogether.
The text was updated successfully, but these errors were encountered:
While verifying the fix for #1620, I noticed things were still on the slower side, but this time only when i was typing on the first line of the terminal. Sorry for piling on with another one of these 😞
Same general process as before:
Looks like this one is caused by this (specifically the second line):
xterm.js/src/ui/RenderDebouncer.ts
Lines 27 to 28 in 9273e81
I had initially thought this one was fine because I had been remembering that the end line was exclusive, not inclusive. However, this is not the case, so when editing the first line and only the first line,
rowEnd || this._terminal.rows - 1
evaulates tothis._terminal.rows - 1
becauserowEnd
is falsy, triggering a full viewport refresh.I've verified that tightening up the check fixes the slowdown for this case. Will send a PR shortly.
As a side note, I was surprised by the amount of time spent rendering the blank lines at the bottom of my terminal. This may be specific to the configuration of my normal setup (there's some transparency which results in compositing of the layers), but if it's not being done already, it might be worth trying to bypass foreground drawing for space characters altogether.
The text was updated successfully, but these errors were encountered: