milbits / oldcord

Discord theme that tries its best to restore the 2020 UI
88 stars 16 forks source link

hideous amounts of css lag for some reason #45

Open toydotgame opened 6 months ago

toydotgame commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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

toydotgame commented 6 months ago

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 commented 6 months ago

absolutely no change :c

toydotgame commented 6 months ago

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 commented 6 months ago

i should try it on Firefox with vencord web, what if its a fucking chromium/electron problem lmao

milbits commented 6 months ago

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

TorutheRedFox commented 1 month ago

still a problem sadly :c

milbits commented 1 month ago

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

milbits commented 1 month ago

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

toydotgame commented 1 month ago

css try to not be comically fuckign laggy challenge EPIC FAIL

milbits commented 1 month ago

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

KingGamingYT commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

curse the canadian goose

KingGamingYT commented 1 month ago

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

milbits commented 1 month ago

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

KingGamingYT commented 1 month ago

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