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
Rendering fix (subpixel -> old one) #1083
Conversation
So, I have no idea what this code was even meant to do in the first place. @thelounge/maintainers anyone? |
It's a trick to force certain elements to be rendered on the GPU. |
Alright, is there a reason we are currently doing that? |
I believe it was added for opening/closing channel list and user list, but why that was deferred to the GPU, that I have no idea... |
Also, just to be clear, you reported this as a regression from Shout, but this was introduced 3 years ago by erming himself, so I'm not sure how The Lounge regressed from it :) |
Opening the sidebar uses translate3d, probably yes, to force GPU before it starts. Forcing GPU layer is also helpful for scroll performance, I was debugging some perf stuff in devtools and doing such a trick improved things. I cant provide more details right now as I am on mobile. What i want to know, why does translateZ of 0 does different font rendering? |
Note that it's not the first time that someone reports that the text in the user list is not as clean as the text of the chat window. Maybe some GPUs do not render things correctly and make simplifications instead? |
Just checked myself, you're right. But Shout doesn't use subpixel rendering with this. Guess |
@xPaw, @YaManicKill, what do we want to do with this? |
So this PR removes animation when opening or closing the channel list (with hamburger button). @bews Can you test if adding |
No, it doesn't. What browser do you use? I can't reproduce it here.
Yes, replacing
with
fixes rending too. Should we use this way? |
@@ -787,8 +787,6 @@ kbd { | |||
right: 0; | |||
width: 180px; | |||
transition: all .4s; | |||
-webkit-transform: translateZ(0); | |||
transform: translateZ(0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's really strange, but sidebar rendering was fixed by one of the recent commits, so it's not necessary to remove these lines anymore. Magic! Although there is a chance that this problem will appear again in future.
Should we close this PR (for now at least) then? |
No, chat block is still broken, so at least other 2 lines should be removed. |
-webkit-transform: none !important; | ||
transform: none !important; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These ones.
Was discussed in #1071