Skip to content
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

hideous amounts of css lag for some reason #45

Open
toydotgame opened this issue May 16, 2024 · 22 comments
Open

hideous amounts of css lag for some reason #45

toydotgame opened this issue May 16, 2024 · 22 comments

Comments

@toydotgame
Copy link
Contributor

hey gamer,,the last couple of days (ive updated from months old 32 bit discord to brand-new-as-of-right-now discord) theres been massive amounts of lag literally only when i have oldcord loaded as a theme. very occasionally in some areas things go smooth but a good 90% of the time typing moving the mouse around clicking on stuff is like a good 3 fps tops

it doesnt seem to be dependent on it being a server, dm, nor whatever is in the actual chat causing lag, it just randomly does this. i have all three of ur oldcord modification css but without them its still insane

im on kde 5 arch linux btw but i literally have no idea how to diagnose css lag so this is kinda a low importance draft issue rn, im suffering but theres not much i can do to figure it out,,im letting you know to see if this can be recreated but if not its so joever lmao oh well

@milbits
Copy link
Owner

milbits commented May 16, 2024

yeah i get it too( though not as strong) but i cant figure out whats causing it 😭😭
im using fedora 40 kde 6, on a ryzen 3 nvidia 3060 btw

@milbits milbits pinned this issue May 16, 2024
@milbits
Copy link
Owner

milbits commented May 17, 2024

might be related to nvidia and flatpak, i use discord (vesktop to be sepcific) on a flatpak and i ran flatpak update, it updated org.freedesktop.Platform.GL.nvidia-550-78 and now everything runs smooth again!
if you dont use an nvidia gpu (or installed discord from the arch repos) then i really dont know, sorry

@toydotgame
Copy link
Contributor Author

yeah i'm running amdgpu so i have no idea. but i am running vencord+openasar and my packages were last updated in april so there might be something there

@milbits
Copy link
Owner

milbits commented May 20, 2024

yeah after a day the lag came back and even worse, i dont know really and this just confirms its not hardware related

@toydotgame
Copy link
Contributor Author

does the hwaccel option in just normal discord change anything? probably not at this point if gpu isnt the cause. i dont even think chromium css rendering can use hwaccel at all. no idea where it comes from :((

@milbits
Copy link
Owner

milbits commented May 20, 2024

absolutely no change :c

@toydotgame
Copy link
Contributor Author

tested on win10 ltsc vesktop 32 bit w/o hwaccell (8 gb ram i5-8350U and som fuckass ssd)
image
image

still horrendous </3

literally how do you diagnose something that is just css. the hover effects on my website are also css only and they lag a bit so yeah css is laggy but like???how

@milbits

This comment was marked as outdated.

@milbits
Copy link
Owner

milbits commented May 20, 2024

i replaced some wildcards in profile.css with normal class selecotrs and it significantly sped up opening profiles, thats probably the culprit

@milbits milbits closed this as completed May 31, 2024
@milbits milbits unpinned this issue May 31, 2024
@TorutheRedFox
Copy link

still a problem sadly :c

@milbits
Copy link
Owner

milbits commented Oct 12, 2024

unfortunately i have 0 idea how to fix the lag and high cpu usage :(

@milbits
Copy link
Owner

milbits commented Oct 12, 2024

okay looked at it again and seems like something in profile.css is fucking with the client

@toydotgame
Copy link
Contributor Author

css try to not be comically fuckign laggy challenge EPIC FAIL

@milbits
Copy link
Owner

milbits commented Oct 14, 2024

something has to be wrong with the theme because other themes have half of the CPU usage and basically no lag

@milbits milbits reopened this Oct 14, 2024
@KingGamingYT
Copy link
Collaborator

KingGamingYT commented Oct 14, 2024

surely the lag isn't caused by the fact profile.css is maximally inefficient due to it being by far the most modified file :clueless:

I personally don't experience any lag or increased cpu usage with the theme enabled so I can't really fix it

@milbits
Copy link
Owner

milbits commented Oct 14, 2024

true its big as fuck but i dont see anything wrong, heavier themes like dtm-16, material and even clearvision dont have any lag and they're far bigger and definitely more unoptimized or something idk

also worth saying that the same happens when profile.css is off but color.css is on (and that theres like, no difference if one of them is off)

@KingGamingYT
Copy link
Collaborator

KingGamingYT commented Oct 14, 2024

odd

legitimately the only reason I can think that this happens is because the theme is split into multiple files and relies on imports, which isn't the norm
but those files are stored locally when imported and technically have no explicit reason to be connected, they're just intended to be
idk

also 11pixels has complained on multiple occasions how laggy dtm-16 gets so it definitely isn't some magically bloated yet smooth theme

@milbits
Copy link
Owner

milbits commented Oct 14, 2024

i copy-pasted their content into main.css and nothing changed
(also the reason why there are a trillion files is because this is a fork of revert-rebrand and im too lazy, felt like saying that)

@KingGamingYT
Copy link
Collaborator

curse the canadian goose

@KingGamingYT
Copy link
Collaborator

image
surely can't imagine why the theme has lag when we rely on selectors like this (I still don't get lag)

@milbits
Copy link
Owner

milbits commented Oct 22, 2024

cpu usage was fixed with a sudo dnf update but lag persists on every setup, it's mostly noticeable during typing

@KingGamingYT
Copy link
Collaborator

very odd, legitimately the only major lag I've experienced is with dav's icon pack enabled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants