-
-
Notifications
You must be signed in to change notification settings - Fork 519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blatant flickering #1466
Comments
This is also happening for other widget types in flicker.mp4 |
This happens in progress displays without spinners as well. |
Can confirm what @yenneferofvengerberg posted, rolling back that commit related to long lines smooths things out again. Probably need something a bit more clever than brute forcing a clear on each line each render. I'd almost be inclined to suggest using the |
Is there a PR to roll this back? |
I considered doing it, but I couldn't figure out how to maintain the
correct behavior when the text goes out of screen. If someone can provide
me a hint, I would be happy to try
|
Since it's a regression I would say that it's OK with restoring it how it was, and look at finding a solution for it later. |
…pt output spectreconsole#415 spectreconsole#694" This reverts commit 71a5d83. The commit introduced major flickering when working with LiveRenderables Fixes spectreconsole#1466
Opened a PR for the revert #1504 Regarding the original issue with WriteLine during a LiveRenderable, I wonder if some cleverness could be done to detect whether or not we can do the overwrite the content (no-flicker) vs erase what was written. Have to keep state of what was previously there on the last write, but I think it would be doable if someone had the gumption. |
Information
Describe the bug
Displaying a task list with spinners causes the whole task list to flicker. Apparently, see below, this is a regression introduced in 0.48.0
To Reproduce
The following code exhibits the issue: (tested on .net 6.0 and .net 8.0)
Expected behavior
No flickering, like in 0.47.0
Screenshots
0.48.0:
0.47.0:
Additional context
The "regression" has been introduced in the commit 71a5d83
The offending line is in src/Spectre.Console/Live/LiveRenderable.cs:
The text was updated successfully, but these errors were encountered: