Guild icon
DDraceNetwork
Development / bugs
Report client & server bugs, especially but not limited to release candidates.
Between 2023-01-13 00:00:00Z and 2023-01-14 00:00:00Z
Avatar
i cant use opengl game wont even open
01:19
i get this error when i open the client and it tries to load
01:20
so i cant open settings
01:20
i have custom assets downloaded but they are not that big and i had them before the latest update anyway
01:20
and there were no problems
01:23
only demos folder is big(2.40gb) but im pretty sure its not the cause
01:28
found the cause it was the skins
01:28
but they were only 500mb so idk lol
Avatar
only 500mb
Avatar
what's the avg file size for a skin? 10kb? ^^
Avatar
Avatar
mpampas
Click to see attachment 🖼️
500mbytes compressed. But on GPU they are obviously uncompressed xd. The screenshot actually tells you that around 1.7gbytes vram were used for skins
06:18
At the point of crash... Who knows how much it would have used total else. But considering u only have 2gb vram. U really shouldn't use high resolution skins, because u defs don't use 4k monitor with such a GPU lmao
Avatar
Do the downloaded skins count too?
06:43
From cl_skin_download_url
Avatar
Sure but at least the ones from ddnet aren't over sized
07:10
With 2gb vram u can use around 7629 skins with normal resolution
Avatar
No I want UHD skins! Is that VRAM limit set by the game, or is it based on your GPU?
Avatar
GPU. Also if u want h high resolution skins use 512x256
07:18
That's for 4k monitor
07:19
Not 4kx2k that's for 32k monitor
07:23
I wasn't able to find my VRAM specs. But the internet says the 3090 got 1TB/s. So I think that is more than the 2GB some here have.
Avatar
That's the bandwidth
07:23
But 3090 has 16gb iirc
07:23
So u can use any skin without worrying
07:24
But still don't use 4kx2k
Avatar
Avatar
Jupstar ✪
But 3090 has 16gb iirc
I think mine got 24GB tbh
07:24
Though you are more knowledgeable than me
Avatar
Remember that a 4k monitor had a resolution of around 4kx2k. So auch a skin can fill up every single pixel on your screen
07:24
But usually a tee only uses a small amount of Ur screen
Avatar
But I use 20x zoom+
Avatar
Avatar
default
I think mine got 24GB tbh
I dunno but could be possible too ^^
Avatar
Avatar
default
But I use 20x zoom+
^^ then at least don't use too many of these skins
Avatar
Avatar
Jupstar ✪
I dunno but could be possible too ^^
Ye just checked. The Gigabyte one I have twice does have 24GB.
07:26
I think the stock one is 18GB
Avatar
Then u can use 357 4k resolution skins
07:28
And 91552 normal skins
07:28
+- ofc since u also need since vram for other stuff
07:29
Press Ctrl shift d in client with VK top left tells u exactly how much memory is used
Avatar
a bug is on my Ubuntu 22.04
08:41
All the servers can make my client console output "delta unpack failed. error=-3"
08:41
then my client will lag
08:42
(Any servers, any mods)
08:44
At first I thought it was an issue with my mod, but then it turned out that all servers had this problem
08:44
Strangely only my client has this problem
08:44
is this a bug?
08:46
oh right
08:46
if i use ddnet16.5
08:46
It's not have this problem
Avatar
@Robyt3 can we fix this? I think we talked about it already
Avatar
Avatar
Jupstar ✪
@Robyt3 can we fix this? I think we talked about it already
We need a way to reproduce this consistently if we want to try and fix it on the server side. The error check and message were added in #6214. We could obviously revert that error handling, but then it would cause UBSan errors in those cases. I don't know if ignoring those snapshot deltas causes the lags or if the lags are client side and caused by too many log messages being outputted (either in the ingame console or in the external terminal). If possible someone should record a demo and/or video while this is happening, so we can get some details (server, ping, number of player etc.). (edited)
Avatar
Is it ok if I first revert the change? It seemed better before, even with UB we had for years
12:37
until we have a workaround for people stuck on older versions
12:42
@Robyt3 ^
Avatar
Avatar
deen
Is it ok if I first revert the change? It seemed better before, even with UB we had for years
Yeah, just comment out or remove the return -206; for now
13:24
and also the check in UndiffItem
Avatar
Done, will restart servers in a few min
Avatar
@RemakePower works fine on empty servers now? (official DDNet)
Avatar
Avatar
Jupstar ✪
v u tried reset cl_mouse_max_distance
thx heartw
Avatar
Avatar
Jupstar ✪
At the point of crash... Who knows how much it would have used total else. But considering u only have 2gb vram. U really shouldn't use high resolution skins, because u defs don't use 4k monitor with such a GPU lmao
I have a gtx960 2gb lol pretty old now
16:16
But still why wouldn't it crash before the latest update? Haven't added any new skins/assets to my folders in months
Avatar
should be powerful enough for ddnet though
Avatar
Avatar
mpampas
But still why wouldn't it crash before the latest update? Haven't added any new skins/assets to my folders in months
opengl driver is more robust for these cases at trade of performance/possible lags
16:20
if you absolutely prefer to have ur 500mb skins u can use opengl again xd
Avatar
I guess ill just buy a new gpu i needed one anyway
16:22
Imagine tw being the reason you upgrade your pc
16:23
I wont let go of my skin collection that easily
Avatar
xDD well do as you like but as said you could also still switch back to opengl in settings -> graphics
Avatar
I have the same issue as @mpampas. Game worked fine 2 days ago, now since the last update the game can't open because of skins. I didn't add or remove anything, it's only the newest update that changed for me. (edited)
Avatar
But you recommend switching to Open GL, any specific version that is prefered?
Avatar
Avatar
ILilCookie
But you recommend switching to Open GL, any specific version that is prefered?
newest, but i generally recommend to delete skins
Avatar
So far it seems to be working with open.gl.3.30
Avatar
its still not good style to use skins your computer isnt designed to handle
17:08
if someone joins with a 4k skin it might create laggs for you
Avatar
In ddnet client i cant see the writings like ''Servers'' ''Options''
17:09
can someone help me?
Avatar
Avatar
Yagizbe
In ddnet client i cant see the writings like ''Servers'' ''Options''
can you explain further, i dont understand
17:11
just one minute
17:11
ill take a screenshot
17:11
and you will understand
17:11
i guess
17:12
Avatar
Well, I find it hard believing that these are skins my computer wasn't designed to handle since it's been working for 1+ years without any issues. Only since the most recent update issues came up, but now it's working so it's w/e (edited)
Avatar
Avatar
Yagizbe
Click to see attachment 🖼️
There are numerous graphics (gfx) related bugs users encountered. Not all are fixable, but might have workarounds. This site is there to collect these to help those encountering the same issues.
17:14
sadly this is a driver bug, please read the link
Avatar
Thanls
17:14
Thanks*
17:14
have a nice day
Avatar
Avatar
ILilCookie
Well, I find it hard believing that these are skins my computer wasn't designed to handle since it's been working for 1+ years without any issues. Only since the most recent update issues came up, but now it's working so it's w/e (edited)
well its been working, but only because the opengl drivers have workarounds to being out of vram
17:14
you are still clearly using assets your PC isnt made for
Avatar
I have been using Vulkan before so Open Gl haven't been much of help
Avatar
if you used vulkan before then you must have been close to the limit before
17:15
i suggest to delete atleast the high resolution skins
17:15
or resize them
Avatar
But how is it that I was "close to the limit" and after an update I'm "over the limit"
Avatar
its also possible that it now uses your intel GPU if you use a laptop
Avatar
Not laptop
Avatar
Avatar
ILilCookie
But how is it that I was "close to the limit" and after an update I'm "over the limit"
its possible if e.g. someone added a single texture to the client
17:16
just try to remove the 4k skins and it will work
17:16
or give them to me, i'll resize them for you if they are so important to u
Avatar
I don't mind deleting a select few skins, but I don't know which ones are 4k or HD and which ones are just average. They all use normal names, no big hints
Avatar
sort by file size
17:19
4k are usually bigger
Avatar
Smort, I'll remove from the top by size wise if problem occurs again (edited)
Avatar
Also, just out of curiosity. My error message told me that my game files contained somewhere in between 1.7-1.8 GB of texture (skins, assets). Which obviously is a lot, but I have 16 GB ram available, so I don't see how it would really be a problem. Is it really my computer that can't handle it or is it something with the new update that don't co-exist well with my computer? (Not too tech savvy so don't know if this is relevant info at all, just curious) EDIT: I have 2 GB VRAM, so I can see how it's edging a crash. I only checked RAM. But follow up question. How can these skins take so much VRAM and crash, when I can play games with quite insane graphics on high settings etc. What makes something use VRAM instead of RAM? (edited)
Avatar
all meshes and textures are on the graphics card (vram), alongside extra information like position, surface/material information, etc. it would be interesting which game you are talking about, but they probably have a system in place to manage the vram so that only the things you might see on screen is in the vram. maybe further away objects are also only in vram with lower quality, there are a lot of tricks
Avatar
So, if I understand you correctly, TW have all skins and textures loaded at all times. No matter if they're being used or not?
Avatar
Avatar
ILilCookie
So, if I understand you correctly, TW have all skins and textures loaded at all times. No matter if they're being used or not?
yep, thats why downloaded skins are better
19:25
they are loaded on demand
Avatar
Aren't all skins downloaded? I'm confused
Avatar
only if a player uses them
19:29
but skins in your local dirs are all loaded and we should change that
19:29
but i am lazy af and motivation for it is -inf
Avatar
Ey, it works for me now, I'm fine with that. Also, ain't there a risk of lag-spikes if it has to load every skin as soon as someone joins? Could see that being a problem, especially in gores. 0.1 sec of freeze = instant death
Avatar
Avatar
ILilCookie
Ey, it works for me now, I'm fine with that. Also, ain't there a risk of lag-spikes if it has to load every skin as soon as someone joins? Could see that being a problem, especially in gores. 0.1 sec of freeze = instant death
if u only use ddnet skin database it should be ok
20:57
256x128 skins are rather small overhead for the bandwidth
Avatar
I'm using both the ddnet.tw skins folder and Ahl's skin folder. Second mentioned is the one that stacks up on vram usage fast. Most skins seem to be like 5-20 kb but the largest one in Ahl folder is 2mb. Quite a difference, I must say 😄
Avatar
Avatar
ILilCookie
I'm using both the ddnet.tw skins folder and Ahl's skin folder. Second mentioned is the one that stacks up on vram usage fast. Most skins seem to be like 5-20 kb but the largest one in Ahl folder is 2mb. Quite a difference, I must say 😄
ok lets do the math lets say u target 400 fps every frame something has to be uploaded to the GPU, at least smth like a draw call so it uses the same bus as uploading data (maybe its not the case so the bus is never blocked, but lets simply assume it for now) a gtx 960 has a memory bandwidth of 112.2 GB/s, pcie 3.0 has 8 GBit/s bandwidth so for simplicitly lets assume the pcie lane is the bottleneck having 8gbit/s means every frame has 2 500 000 bytes bandwidth so around 2.5mb a 256x128 skin is 262 144, so around 9 skins per frame a 512x256 is 4 times as much, so around ~2 skins a 4k skin ~0,037 skins per frame xDD so only targeting 400 fps, u need around 27 frames of these frames just to upload a 4k skin rest should be relatively fine (edited)
21:13
but ofc this isnt 100% correct, its not clear if the GPU supports mipmap building which newer GPUs do, and if so you can halve all values here (or double), in exchange of using GPU resources
21:14
ah and gpus use 16 lines, i dunno if they use all at once, maybe u can google it
21:15
then it could use much more bandwidth
21:15
lets ask @Chairn he is literaly a doctor in this
Avatar
hello there
21:15
lemme read
21:18
but you don't need to transfer skin for every frame, you only do it once
Avatar
yes, but he wants to know if it can create a lag
Avatar
that's why there's VRAM
21:18
disk loading may cause lag, only if performed by main thread which would not be the case here
21:19
or if there's some antivirus software blocking the whole process rather than just a thread
Avatar
yeah, i'd say uploading a 4k skin is defs risky a normal skin should be fine
21:19
mipmap building has to happen in that frame too
21:19
else the skin cannot be used
Avatar
obviously, the first skin transfer might hog just a tiny little bit the bus, but that shouldn't be the common case
Avatar
it would be so cool to redesign the whole ddnet graphics stuff to fit vulkan, but with opengl 1 there is always a blocker (edited)
Avatar
well, now you're the expert on this part 🙂
Avatar
its probs overkill bcs it happens to rarely xd
21:22
but the idea of smoothing out a skin upload over multiple frames to not crate any kind of lag is cool in theory xd
Avatar
I understood pretty much nothing of what you said unfortunately, but thanks for the deep dive and attempt to make me understand. I tried reading it a couple of times and going slow but these numbers and letters don't really tell me anything :c
Avatar
Me neither but should not cause lags
Avatar
Don't we upload skins on demand already? When a new one is loaded from skin db
Avatar
Maybe you did before the latest update since i didnt have any crashes before
Exported 143 message(s)