Guild icon
DDraceNetwork
Development / bugs
Report client & server bugs, especially but not limited to release candidates.
Between 10/26/2023 12:00AM and 10/27/2023 12:00AM
Avatar
This visual bug appears when using the search function, posting it here in case you wanna look in to this.
Avatar
That is absurd, @Jupstar ✪ maybe something in the text renderer choking on a weird character or sth?
Avatar
Avatar
Learath2
That is absurd, @Jupstar ✪ maybe something in the text renderer choking on a weird character or sth?
Jupstar ✪ 10/26/2023 10:39AM
I've seen this multiple times already. Since @Robyt3 reworked it
Avatar
Avatar
ryuma
This visual bug appears when using the search function, posting it here in case you wanna look in to this.
Which exact git revision (see F1) is this? This should already be fixed in latest nightly (steam beta) and the bug was introduced after version 17.3, so the latest release should also not be affected.
Avatar
Avatar
Robyt3
Which exact git revision (see F1) is this? This should already be fixed in latest nightly (steam beta) and the bug was introduced after version 17.3, so the latest release should also not be affected.
I am not using the latest 17.3 version, this might have been the problem. You wanna see my git revision hash or what exactly do you wanna see? (edited)
Avatar
Avatar
ryuma
I am not using the latest 17.3 version, this might have been the problem. You wanna see my git revision hash or what exactly do you wanna see? (edited)
Yeah
Avatar
git revision hash: 3bfa2d36f4b094d9feb240cbb76da128
Avatar
Hm, that's already a month old
11:51AM
Also doesn't appear to belong to ddnet repo directly
Avatar
It doesn't its the latest T-Client update for 17.3
11:51AM
My bad for pointing out a bug even tho I am not on latest DDNet version
11:52AM
feelsbadman
Avatar
Hm, so Tater didn't port the fix for this bug yet
Avatar
Seems so
11:52AM
@Tater get back to work
11:52AM
ReallyMad
Avatar
Avatar
Jupstar ✪
I've seen this multiple times already. Since @Robyt3 reworked it
I wanted to rework the rendering of highlighted text using the textrender, so the text color can be specified for individual spans of characters, but it didn't seem easily possible with the current text containers. Is it possible to change IGraphics::RenderText so it doesn't take a single text color as argument? Does it even need the color arguments? (edited)
Avatar
Avatar
Robyt3
I wanted to rework the rendering of highlighted text using the textrender, so the text color can be specified for individual spans of characters, but it didn't seem easily possible with the current text containers. Is it possible to change IGraphics::RenderText so it doesn't take a single text color as argument? Does it even need the color arguments? (edited)
Jupstar ✪ 10/26/2023 11:59AM
Can't u simply rebuild the texture containers when text changes?
Avatar
I don't want to use 3 text containers to render one browser entry
Avatar
Jupstar ✪ 10/26/2023 12:00PM
Ah
12:00PM
U don't need
12:00PM
Text containers it self support multi color
12:00PM
Just not the Render function
12:00PM
U need to do multiple append calls
12:00PM
But u need to do that anyway i guess
Avatar
Yeah, I'd also need to think about a good API to make multi-color labels without to much effort
Avatar
Jupstar ✪ 10/26/2023 12:02PM
Just trade some performance xd
12:02PM
Ui Code is meant to be slow
12:02PM
And allocate 500mb ram
Avatar
Using the text render directly would already make a lot of the UI text faster
12:03PM
If we don't need all the other hacks
Avatar
Avatar
Jupstar ✪
And allocate 500mb ram
Well, 17.3 just trades some memory for performance
12:03PM
Each UI element is leaked
12:03PM
So there is no issue of data being old
Avatar
Avatar
Robyt3
Well, 17.3 just trades some memory for performance
Jupstar ✪ 10/26/2023 12:04PM
That's something u should always do xd
Avatar
Avatar
Robyt3
Each UI element is leaked
Jupstar ✪ 10/26/2023 12:04PM
Oh
12:04PM
That sounds like a bug xd
Avatar
Yeah, if you keep refreshing the server list you will increase your RAM usage (edited)
Avatar
Jupstar ✪ 10/26/2023 12:04PM
Mhh
Avatar
But the fix for that introduced the above bug in two different ways (edited)
Avatar
Jupstar ✪ 10/26/2023 12:06PM
ok so what exactly is your plan? u could simply write a "builder" that takes text and it's color as array as parameter and builds a container out of that
12:06PM
on top of that put some kind of cache logic that checks if any parameter changed, then it's simple enough i guess
Avatar
Yeah, either something like a builder or just specify a vector of STextSpan for a CTextCursor, which specifies stuff like m_Color, m_Underlined for a range of text etc. (edited)
Avatar
Jupstar ✪ 10/26/2023 12:08PM
and then handle it directly in the text.cpp logic?
Avatar
Builder would be cleaner, then you don't need to ensure manually that the spans have the correct start/end indices
Avatar
Avatar
Jupstar ✪
and then handle it directly in the text.cpp logic?
Yeah
Avatar
Jupstar ✪ 10/26/2023 12:08PM
mh yeah.. our text engine is simply not very powerful. i guess a builder would be easier if you aren't motivated to rewrite many parts of the text engine
Avatar
There's a lot that could be moved to the textrender instead
12:10PM
I want to avoid rewriting every single DoLabel call though
12:11PM
Text alignment is also currently done in CUI, on upstream this is already done in the textrender
Avatar
Jupstar ✪ 10/26/2023 12:13PM
well if u rework it, i'd suggest to create some richtext class instead of working with ranges. The rich layout engine simply has an array of text and its color and its alignment and then work block by block or smth like that
12:14PM
on the quick i also can't come up with something really useful, but it's usually easier to keep stuff that works together also together in a data structure
Avatar
heinrich5991 10/26/2023 12:15PM
it'd be nice if that data structure wouldn't need to allocate, as it's in a very hot path
Avatar
Jupstar ✪ 10/26/2023 12:15PM
ui is not hot
12:15PM
also heap allocations are less worse than you think.
Avatar
We can assume it will be used to support color broadcasts at the very least
Avatar
Jupstar ✪ 10/26/2023 12:16PM
the only hot paths are ingame UI stuff
Avatar
Avatar
Jupstar ✪
also heap allocations are less worse than you think.
heinrich5991 10/26/2023 12:16PM
if it's done every frame, then it's hot, no?
12:16PM
text also exists ingame
Avatar
Jupstar ✪ 10/26/2023 12:16PM
but not colored text
Avatar
heinrich5991 10/26/2023 12:17PM
it's only a matter of time, once you make it more usable
Avatar
Jupstar ✪ 10/26/2023 12:19PM
anyway, i don't even see why we should store it as heap object. i agree that on c++ it sucks a bit, since strings are null terminated, a slice would solve these issues.. the text is only used during the call anyway
12:19PM
we don't really save the content of the string
12:19PM
the caller could decide what to use, just as we do it right now
Avatar
heinrich5991 10/26/2023 12:20PM
sounds good!
Avatar
Jupstar ✪ 10/26/2023 12:25PM
how did i survive without the ease of rust std library types: https://github.com/Jupeyy/dd-pg/tree/test5/lib/pool/src having pools to allocate from is really easier for these situations, since the number of allocations maxes out to something specific
Avatar
chillerdragon BOT 10/26/2023 7:02PM
@Jupstar ✪: wrong channel but whatever. How is this an English sentence? https://github.com/Jupeyy/dd-pg/blob/a3c9d4b6a329f85c02ca56cf95c36a4b3f2ae0ed/lib/pool/src/pool.rs#L5
don't use or read this code. Contribute to Jupeyy/dd-pg development by creating an account on GitHub.
Avatar
Avatar
chillerdragon
@Jupstar ✪: wrong channel but whatever. How is this an English sentence? https://github.com/Jupeyy/dd-pg/blob/a3c9d4b6a329f85c02ca56cf95c36a4b3f2ae0ed/lib/pool/src/pool.rs#L5
Jupstar ✪ 10/26/2023 7:08PM
no crate fullfilled our requirements => own implementation
7:08PM
better like that?=
Avatar
chillerdragon BOT 10/26/2023 7:08PM
Much better
7:08PM
Or add some verb to the second part
Avatar
Jupstar ✪ 10/26/2023 7:09PM
bloat
7:09PM
xd
Avatar
chillerdragon BOT 10/26/2023 7:09PM
Verbs are bloat indeed
7:09PM
Minimal comments
Avatar
Avatar
chillerdragon
@Jupstar ✪: wrong channel but whatever. How is this an English sentence? https://github.com/Jupeyy/dd-pg/blob/a3c9d4b6a329f85c02ca56cf95c36a4b3f2ae0ed/lib/pool/src/pool.rs#L5
No crate fulfilled our requirements so we made our own implementation
Avatar
Avatar
Jupstar ✪
bloat
Yea but you're wasting cycles on every user trying to understand the sentence
Avatar
chillerdragon BOT 10/26/2023 7:24PM
User brain cycles lmao
Avatar
Avatar
Ewan
No crate fulfilled our requirements so we made our own implementation
Jupstar ✪ 10/26/2023 7:26PM
u wasting cycles on every user having to read this overly long, over the average attention span of gen-z user, sentence
7:26PM
😬
Avatar
you must strike a balance
Avatar
Avatar
Jupstar ✪
no crate fullfilled our requirements => own implementation
Jupstar ✪ 10/26/2023 7:27PM
^ this is 👌
Avatar
it took me a long time to understand
7:28PM
and chiller i guess
Avatar
chillerdragon BOT 10/26/2023 7:28PM
Link a TikTok
Replying to @Jupstar ✪ u wasting cycles on every user having to read this overly long, over the…
Avatar
Jupstar ✪ 10/26/2023 7:28PM
instead of saying that it's "fulfilled" instead of "fullfilled" @Ewan u native speaker
7:28PM
i'm sad
Avatar
chillerdragon BOT 10/26/2023 7:28PM
Xd
Avatar
chillerdragon BOT 10/26/2023 7:29PM
Stay in school ewan
Avatar
it's spelled fulfilled 😃
7:29PM
google it
Avatar
Avatar
Jupstar ✪
u wasting cycles on every user having to read this overly long, over the average attention span of gen-z user, sentence
basically our brains threw an exception when we read this illogical nonsense and we had to take another, more careful pass to parse it (edited)
Avatar
Avatar
Jupstar ✪
no crate fullfilled our requirements => own implementation
Jupstar ✪ 10/26/2023 7:29PM
i missspelled it here tho
7:29PM
sssssss
Avatar
yea u did misspell it
7:30PM
so why are u disappointed in me
7:30PM
xd
Avatar
Jupstar ✪ 10/26/2023 7:30PM
u didnt notice
7:30PM
u, my chat gpt
Avatar
i am not gonna point out ur typos
Avatar
Jupstar ✪ 10/26/2023 7:30PM
😬
Avatar
chillerdragon BOT 10/26/2023 7:30PM
Would be too many
Avatar
Jupstar ✪ 10/26/2023 7:30PM
tru story
Avatar
just your colossal grammatical shortcomings
Avatar
Jupstar ✪ 10/26/2023 7:30PM
well that's a problem in ur brain tho
7:30PM
i understand my sentence
Avatar
i didn't get the jupstar feature update
Avatar
Jupstar ✪ 10/26/2023 7:32PM
good that we are always talking about bugs in #bugs
7:32PM
brain bugs
7:32PM
your brain is bugged
Avatar
Jupstar ✪ 10/26/2023 7:34PM
yeah now do your homeworks lmao, instead of continuing spaming bugs channel
Avatar
what homework think_bot
Avatar
u better stop spamming or ill call heinrich 🤓
Avatar
Jupstar ✪ 10/26/2023 7:36PM
xddd
7:36PM
that will end bad for me
Avatar
see, i can be a mod, i can ruin convos not worse than them
Avatar
Avatar
MilkeeyCat
see, i can be a mod, i can ruin convos not worse than them
Jupstar ✪ 10/26/2023 7:40PM
i voted for u
Avatar
did u vote for me
Avatar
Jupstar ✪ 10/26/2023 7:40PM
u too young
7:41PM
25+
Avatar
oh my bad
7:41PM
my eyes seem to be failing me recently
Avatar
Jupstar ✪ 10/26/2023 7:42PM
xDD
7:42PM
esp. bcs milkeeycat is also only 18
Avatar
oh i didn't know that
7:42PM
u big troll
7:42PM
we rly should go channel tho
Avatar
Avatar
Jupstar ✪
i voted for u
hell yeah, thanks 😳 owo
Avatar
it supports vulkan backend only >:(
7:50PM
laptop burns but aint gonna run me dd-pg xd
Avatar
Avatar
gerdoe
it supports vulkan backend only >:(
Jupstar ✪ 10/26/2023 7:52PM
wtf how do u know xd
7:52PM
did u test it
Avatar
i built it rn
8:00PM
and it will not run unless i'll buy new laptop/pc
Avatar
Avatar
gerdoe
and it will not run unless i'll buy new laptop/pc
Jupstar ✪ 10/26/2023 8:01PM
does ur laptop not support vulkan? xD
8:01PM
but u can use lavapipe
Avatar
Avatar
Jupstar ✪
does ur laptop not support vulkan? xD
it seems
Avatar
Avatar
Jupstar ✪
but u can use lavapipe
lavapipe on win?
Avatar
Avatar
gerdoe
lavapipe on win?
Jupstar ✪ 10/26/2023 8:03PM
ah, well exists too, but probably not very stable
Avatar
Avatar
gerdoe
lavapipe on win?
Jupstar ✪ 10/26/2023 8:06PM
https://github.com/pal1000/mesa-dist-win last time i tested it (around 6 months ago) it had to support for windows surface tho
Pre-built Mesa3D drivers for Windows. Contribute to pal1000/mesa-dist-win development by creating an account on GitHub.
8:06PM
so u could use vulkan, but only without a window xdd
kek 1
Avatar
Avatar
Jupstar ✪
so u could use vulkan, but only without a window xdd
of course the linux programmer wouldnt want a window
9:18PM
greenthing greenthing greenthing
Avatar
server settings vote menu is empty for me
11:10PM
no filter on
11:11PM
and it's a real ddnet server
11:11PM
just voted a new map with /map and it is back tho
11:11PM
maybe shouldn't have done that >_>
Exported 152 message(s)
Timezone: UTC+0