Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.org/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories — IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2023-10-13 00:00:00Z and 2023-10-14 00:00:00Z
Avatar
Avatar
Gwendal
Messages in #records aren't "published", so you can't receive them in another server by following the channel (edited)
Invite the bot to your server and use the $records register command to enable the bot to send the messages from #records to your server's channel.
02:40
($records unregister to unsubscribe)
Avatar
you could just use the built in discord feature...
Avatar
Avatar
Ewan
you could just use the built in discord feature...
What built in discord feature?
Avatar
Is there a built in feature to automatically publish messages?
06:20
😬
Avatar
did you read the link
Avatar
Yes, I did, did you?
Avatar
you select a channel and then people can choose to ‘subscribe’ to that channel. every message in that channel will be mirrored to any subscriber channels
06:35
records is actually already an announcement channel
06:36
so the bot feature is unnecessary
Avatar
So you didn't read the article
Avatar
how does it work any differently
06:36
it just doesn’t require the bot this way
Avatar
You haven't read Gwendals message and you linked to an article you haven't read yourself
Avatar
then tell me what i fucking missed
Avatar
The article even has a quick TLDR
06:38
keywords are literally in quotes too
Avatar
yeah, the messages are published are they not
Avatar
Read the article you've linked yourself. pepeW
06:43
the article isn’t the issue i just never saw gwendal’s message in the first place lol
06:43
i just saw the bot feature and thought it was silly since an exact feature already exists on discord
06:44
sorry
06:44
still don’t know why they aren’t published messages though
Avatar
They come through a webhook, just no api to do it through there
07:24
I wonder if we can have the bot watch that channel and publish everything
Avatar
Avatar
heinrich5991
@deen have not tried it, would this be useful for not needing the mac to codesign the mac build? https://gregoryszorc.com/docs/apple-codesign/stable/
it's not the only blocker, the dmg generation also uses Apple's proprietary tools
Avatar
if only the world used linux
08:38
Avatar
Avatar
Ryozuki
@Learath2 do u know about https://skarnet.org/software/s6/index.html
Yep, I never used it tho
08:41
The only supervisor I tried under openrc was runit
08:42
good 3 in the morning
Avatar
Avatar
Ewan
good 3 in the morning
Sleep when?
Avatar
@Learath2 i think it is better than runit, the only problem is its not as famous
08:42
i have to be up at 7
08:42
to get car from the shop
08:42
after paying $700 for them to fix
08:42
feelsbadman
Avatar
Avatar
Ryozuki
@Learath2 i think it is better than runit, the only problem is its not as famous
It might be, I never really looked too deep into it. Honestly, start-stop-daemon has never let me down 😄
Avatar
u should have a car mechanic friend
08:43
i have one, but i have no car kek
Avatar
Avatar
Learath2
It might be, I never really looked too deep into it. Honestly, start-stop-daemon has never let me down 😄
That's how I know pidfile races are raaare, a decade of messing around with servers and running linux desktops, only once did I have to deal with a pidfile issue and it was permissions
08:44
I can see it being less rare at the scales of thousands of machines though
Avatar
Avatar
Ewan
after paying $700 for them to fix
Sell car, move to europ
Avatar
Avatar
Ryozuki
u should have a car mechanic friend
problem is they can’t find the time to do it
Avatar
No more maintainance cost for car, no more gas expense
Avatar
and i’d wanna pay them anyway
Avatar
Avatar
Learath2
No more maintainance cost for car, no more gas expense
yea
08:46
would still like to have car tho
08:46
car is cool
Avatar
i can vroom and beep
Avatar
But then we all go cough, cough, i can't breathe, ⚰
08:47
sad situation
Avatar
How about becoming a train person instead? Trains are cool too
Avatar
eventually I will graduate from the car and learn to levitate
08:47
no trains around here
Avatar
Avatar
Ewan
no trains around here
Come europ, we have trains
Avatar
despite having the largest rail system in the world the usa’s is only used for freight
08:48
it’s all shit
08:48
privately owned
Avatar
Though if you ever come here it might all break. A friend of mine from Utah visited Amsterdam, they had all trains cancelled for an entire day
Avatar
amtrak is a joke
Avatar
The American aura is toxic to trains
Avatar
Avatar
Ewan
amtrak is a joke
Yeah, freight having priority on rail is the silliest thing I've ever heard
08:49
And precision scheduled railroading is insanity too. Trains longer than the passing tracks....
Avatar
amtrak is crazy expensive and just shoddily ran since nobody really uses it
08:50
people really only do it to sightsee. i only know one person who’s used it to get from point a to point b, and that’s cuz they’re scared to fly
Avatar
Avatar
Learath2
And precision scheduled railroading is insanity too. Trains longer than the passing tracks....
idk about it
Avatar
Avatar
Ewan
people really only do it to sightsee. i only know one person who’s used it to get from point a to point b, and that’s cuz they’re scared to fly
There is that one cool route on that old seaside track on the west coast. I want to do that for sightseeing sometime
Avatar
im sure the route is cool but being on the west coast at all would ruin it for me
Avatar
Avatar
Ewan
idk about it
To cut costs on personnel the freight companies started scheduling all freight at specific times so they can have monster trains that are so long that amtrak trains, even if they have priority, physically don't have the space to pass them
Avatar
Amazing for shareholder 📈 📈
08:52
typically
Avatar
Avatar
Ewan
im sure the route is cool but being on the west coast at all would ruin it for me
Are you an east coast enjoyer or a midwest enjoyer?
Avatar
Perfect
Avatar
im in the mountains
Avatar
Alaskan?
08:53
alaska cool tho
08:53
im in Colorado
08:53
considered west but not the same as west coast
08:54
and technically im east of the continental divide
08:54
i drive over it every few weeks
Avatar
Avatar
Ewan
alaska cool tho
Only people avoiding the law and crab catchers live in alaska
Avatar
Crab catchers sounds wrong. What does one call a person that catches crabs?
Avatar
fisherman
Avatar
Fisher? Surely not
Avatar
crabberman
Avatar
Are crab even fish? 😄
Avatar
Avatar
Learath2
Crab catchers sounds wrong. What does one call a person that catches crabs?
overly sexually active
BigBrain 1
Avatar
Huh, apparently you still do fish for crab TIL
08:56
i like crab
08:56
never had fresh crab only lobster
08:56
it’s very hard when you’re this landlocked
09:00
okay time to sleep for 4 hours
Avatar
lmao, i used wayland lately.. still way too unfinished
Avatar
Avatar
Teero
@Jupstar ✪ jupsti vulkan chad may you help me?
in maplayers.cpp there often is a calculation * 6 * sizeof(unsigned int) u can change all occurances to remove the *6 * sizeof(...) and then apply it in the TileLayerVisual instead
09:06
it's still legacy code when i used a different approach first. but it it's useless and makes the total number of tiles smaller
Avatar
Avatar
deen
it's not the only blocker, the dmg generation also uses Apple's proprietary tools
I think we generated the DMG on linux before the change to also build the arm binaries
Avatar
Typically, chrome is used to add a shiny or protective coating to other metals, and the metal underneath the chrome is usually the source of rust. Removing this rust with household objects is surprisingly easy with some elbow grease, but...
Avatar
https://blog.kolo.app/optimising-rust-memory.html did somebody of you use "heaptrack" before? 🙂
What is Kolo? Kolo is a dynamic code analysis tool for Python. We use Python's sys.setprofile to introspect Python's call stack and local...
Avatar
Oh, thanks for sharing. Life without any Rust is way more cleaner. 😉
Avatar
Avatar
heinrich5991
https://blog.kolo.app/optimising-rust-memory.html did somebody of you use "heaptrack" before? 🙂
at work
11:14
well i didnt use it myself
Avatar
Preventing our null partten NuLLL pointer dereressces nuuLL punte derererses
11:45
Haskell and COBOL are the most accurate
Avatar
"RELAAIONTIIAL DABBABASES"
Avatar
Avatar
Learath2
Preventing our null partten NuLLL pointer dereressces nuuLL punte derererses
also "data craces" bluekitty
Avatar
Avatar
Patiga
also "data craces" bluekitty
That's also important to prevent
Avatar
but to be fair, it managed to write the language name correctly nearly every time
Avatar
It is surprisingly good at generating actual letters. In my experience with stable diffusion, it only created things that vaguely look like letters if you look from afar
11:51
ig the 2nd one is the easiest
11:52
btw, do anyone manually publish the messages in #announcements ? because they are, so maybe the bot already does it, just not in records
Avatar
Could be, I dont really remember
Avatar
Avatar
heinrich5991
I think we generated the DMG on linux before the change to also build the arm binaries
Yes, but it doesn't support the nice DMG features with fancy images
Avatar
Avatar
deen
Yes, but it doesn't support the nice DMG features with fancy images
I think firefox generates DMGs on linux. is it using a DMGs without fancy images?
Avatar
that scoreboard lmao
Avatar
0.5
Avatar
banger
Avatar
FontSize = 16,00 oops, used , instead of .
Avatar
I tried to localize 0.5 with 0 c++ knowledge at the time
13:33
failed so hard that I quit until 0.6 came out
13:33
Catxplosion
Avatar
ez
13:33
i must have joined shortly after 0.6 released
13:33
so barely missed 0.5
Avatar
there weren't any servers for us to play anyway
Avatar
@Ryozuki today is FFR
13:39
r u tokio pro?
Avatar
Fixed Foveated Rendering
Avatar
Avatar
TsFreddie
Fixed Foveated Rendering
O.O what neurons did i trigger here xd
Avatar
autocompletion
Avatar
VR
13:40
what else xd
13:40
seen too much
13:40
also i have ADHD
Avatar
i c
13:41
r u nvidia ceo now?
13:41
after your 18h days for 1 year
Avatar
I think our new hire is super confused about how I communitate
Avatar
Avatar
Jupstar ✪
r u tokio pro?
ask
Avatar
also what is FFR actually
Avatar
Avatar
TsFreddie
also i have ADHD
i dont wanna sound rude, but somehow lately it feels everyone on internet has adhd
13:48
xd
Avatar
that's how I feel as well
13:49
and i don't actually have ADHD, not diagnosed at least
13:49
owo
13:49
i think im normal
13:49
owo
Avatar
owo I would love to know if I'm actually tho
Avatar
Avatar
Ryozuki
ask
i kinda want to have control over when a current_thread runtime makes "one tick"
13:50
smth like "advance all async jobs"
13:50
i can use block_on. but that actually blocks the current thread until completion
Avatar
Avatar
Ryozuki
i dont wanna sound rude, but somehow lately it feels everyone on internet has adhd
I think ADHD people love to tell everyone they might have ADHD as well
13:51
kek
Avatar
Avatar
TsFreddie
I think ADHD people love to tell everyone they might have ADHD as well
yes
13:51
and "depression"
13:51
but talking about this is a bit taboo
13:51
i just feel like people use their own bads to preach stuff or make it seem they got the reason just because they got x bad stuff
13:52
haha i got cancer now i got the reason!
13:52
anyway thanks for coming to my ted talk
Avatar
Avatar
Jupstar ✪
i kinda want to have control over when a current_thread runtime makes "one tick"
u mean polling?
13:53
u can poll manually a future iirc
13:53
its a bit more advanced
Avatar
amogus me: hate people talking about that myers–briggs personality stuff. also me: haha adhd
Avatar
I'm using Rust on wasm, using wasmbindgen_futures. I currently have async fn foo() { x.await; } I am interested in calling: fn poll(self: Pin<&mut Self>, cx: &mut Context<'>) -> Poll manually, but how do I get a mut Context<'_> ?
Avatar
Avatar
Ryozuki
u mean polling?
yeah i basically want to give all async tasks "thread time". but if they decide to yield, they should
13:53
it should not result in a waiting state
Avatar
Avatar
Jupstar ✪
yeah i basically want to give all async tasks "thread time". but if they decide to yield, they should
hmm maybe thats not possible
13:54
i mean i think u cant forcefully make a task yield
Avatar
Avatar
Ryozuki
i mean i think u cant forcefully make a task yield
yeah but somehow e.g. io tasks do it
Avatar
tokio is a cooperative scheduler
13:54
Tasks are scheduled cooperatively. Most operating systems implement preemptive multitasking. This is a scheduling technique where the operating system allows each thread to run for a period of time, and then preempts it, temporarily pausing that thread and switching to another. Tasks, on the other hand, implement cooperative multitasking. In cooperative multitasking, a task is allowed to run until it yields, indicating to the Tokio runtime’s scheduler that it cannot currently continue executing. When a task yields, the Tokio runtime switches to executing the next task.
13:55
u cant do preemptive scheduling in tokio
Avatar
Avatar
Ryozuki
Tasks are scheduled cooperatively. Most operating systems implement preemptive multitasking. This is a scheduling technique where the operating system allows each thread to run for a period of time, and then preempts it, temporarily pausing that thread and switching to another. Tasks, on the other hand, implement cooperative multitasking. In cooperative multitasking, a task is allowed to run until it yields, indicating to the Tokio runtime’s scheduler that it cannot currently continue executing. When a task yields, the Tokio runtime switches to executing the next task.
ah yeah i have no multithreading at all
Avatar
this is what golang is good at
Avatar
that's one problem xd
Avatar
Avatar
Ryozuki
this is what golang is good at
mh ok
13:55
😭
Avatar
well its the advantage of having a gc
13:56
u would need rust compiler support to do this this in rust iirc
13:56
i think i mentioned this to @heinrich5991 once
13:56
or i asked him xd
13:56
@Jupstar ✪ u can check execution time between tasks yields
Avatar
poggers2 also a fun fact, ADHD medications is illegal here and have the same classification along with all the hard drugs.
Avatar
@Jupstar ✪ what u working on btw
Avatar
Avatar
Ryozuki
@Jupstar ✪ what u working on btw
i kinda would like to have some file system API.. but it should work as if u are not targeting WASM
13:58
and i kinda dont want to introduce multi threading
Avatar
Asynchronous file and standard stream adaptation.
Avatar
iirc there was a high schooler got arrested for taking ritalin to improve focus. and they found him because his score got higher and a teacher got suspicious lmao.
Avatar
well wasm doesnt know about file systems
13:59
so i made a custom API
Avatar
poggers2 fun
Avatar
Avatar
TsFreddie
iirc there was a high schooler got arrested for taking ritalin to improve focus. and they found him because his score got higher and a teacher got suspicious lmao.
lol
Avatar
Avatar
TsFreddie
iirc there was a high schooler got arrested for taking ritalin to improve focus. and they found him because his score got higher and a teacher got suspicious lmao.
does it work so well? xd
13:59
i always felt like shit after eating sugar to improve my performance xD
Avatar
probably not the whole story, but the premise is pretty funny
14:00
sugar crush is a thing i think?
14:00
I do feel like I never could work on a thing for more than a hour tho
14:00
probably another reason i was doing 18 hour works just cuz I'm too slow
14:00
justatest
Avatar
rest in peace
14:01
18h xd that's such anti life
14:01
it must be teeworlds 3.0 to convince me to waste so much time
Avatar
ye, i haven't done that in two months which is a improvement i guess
Avatar
epic
Avatar
but I basically throw out my work to interns and just teach him to do them instead of doing works myself
14:02
justatest probably not a ideal way of working
14:03
amogus but at least I could just fire like 10 ideas at him per day and do the implementation later instead of doing the boring stuff for an hour and cry
Avatar
Avatar
Jupstar ✪
does it work so well? xd
it’s very effective
Avatar
Avatar
Ewan
it’s very effective
are you experienced
14:04
in adhd medications
Avatar
not really
14:04
I’ve taken them
Avatar
are you neurotypical
14:04
probably
14:05
it’s hard to make yourself put in the effort to do something when you know there’s a pill that will let you do it without hesitation
Avatar
if it just work on anyone that's probably why it is illegal here, cuz it is kinda weird for a drug to control people's mental processing ability (edited)
14:05
i honestly thought it wasn't really useful for normal people
Avatar
some would say the tech industry in the western world is run by adderall
14:07
probably other industries too
Avatar
that doesn't sound healthy (edited)
Avatar
definitely not
Avatar
it is also kinda wild that there are so many type of drugs that are FDA approved and you can just buy them OTC in the US tho, but ethanol is just a huge no-no there.
14:09
ethanol is sold ‘ootc’ to anyone 21+
Avatar
i mean that (
Avatar
u thinking the age limit is ridiculous?
Avatar
kinda
Avatar
yeah it is kinda
Avatar
well drinking alchohols maybe it's fair
14:10
our rubbing alchohols are all ethanol based and available on shelves. i've never seen isopropyl alchohol here in china
Avatar
why else would you buy it? it’s already in most gasoline as an additive for efficiency’s sake & rubbing alcohol is usually isopropanol
Avatar
amogus can you make vodka just out of pure alchohol
Avatar
im no expert but you could probably water it down for a spirit that won’t kill you
Avatar
Catxplosion interesting
14:11
also some store clerk are a jerk
Avatar
people even drink mouthwash. nothing to stop them if it’s just pure off the shelf
14:12
mostly homeless people
14:12
alcoholism is one of the saddest conditions around here
Avatar
i was 23 while i was in the US but I don't just bring my passport everywhere, a 7-11 clerk refused to sell my friend a drink just because we talked and made me feel bad
Avatar
he would be on the line if he didn’t id you
Avatar
i can feel like he felt like he was doing justice
Avatar
don’t feel bad
14:13
he would be in trouble if he didn’t i.d. you
14:13
maybe not 30 years ago but that’s how it is now
Avatar
i paid for my own stuff (edited)
Avatar
they i.d. old people
Avatar
he wasn't in the same line
Avatar
even if they’re sure the customer is 21+ they still do it
Avatar
it was kinda weird someone would just notice us talking even tho we are not even heading to the same place.
14:14
i just happen to run into the guy (edited)
14:14
and they refused to sell him a drink
14:14
wtf
Avatar
man i still hate that guy lol
14:15
i didn't like the way he talked to my friend either
Avatar
Avatar
TsFreddie
i was 23 while i was in the US but I don't just bring my passport everywhere, a 7-11 clerk refused to sell my friend a drink just because we talked and made me feel bad
oh i misread this
Avatar
overall very weird experience
Avatar
you have to i.d. everyone involved always
14:16
as to avoid selling the alcohol to a minor indirectly
14:16
same deal
Avatar
Catxplosion like that would actually work but i guess it is fair
Avatar
It used to
Avatar
still didn't like the way he talks tho
Avatar
most 7-11 clerks are assholes
Avatar
a sorry we can't sell that to you is probably fine.
Avatar
he was like nice try dude, don't think we wouldn't know
Avatar
one of my neighbors works at a 7-11 and he wears full face protection as to conceal his identity (???) and wears a bodycam at all time
Avatar
lmao
Avatar
and chewed out my then 9 year old brother over playing with a sign near the parking lot that happened to say that he had exclusive parking in that spot
14:18
despite the fact that the sign was not hurt and he did actually not own the sign
14:19
they’re insane people
14:19
lots of ppl in this tax bracket are insane 😀
14:21
owo oh speaking of age limit
Avatar
i’m like 95 percent sure the lady above us abuses her 2 or 3 kids
Avatar
china lowered legal age of consent
Avatar
Avatar
Ewan
i’m like 95 percent sure the lady above us abuses her 2 or 3 kids
my little brother befriended one of these kids and now he knocks at the door every few days without fail asking if he can come out and play. sometimes he does it during school hours (why isn’t he at school?) and he typically looks like he hasn’t bathed or been bathed in weeks
Avatar
but still no sexual material allowed for anyone and no video games until 18
Avatar
considering calling CPS but we don’t have any evidence
Avatar
Avatar
TsFreddie
but still no sexual material allowed for anyone and no video games until 18
damn
Avatar
it was lowered to 14
Avatar
no video games
14:23
lmfao
14:23
no fun zone
Avatar
Catxplosion i think the game industry here are trying so hard to change that, but it only got more strict
Avatar
are you seen as equal to someone who produces porn or smth
14:25
as a game dev
Avatar
multi companies are trying to form an age rating system for video games, but at this point the ratings are really stupid now.
Avatar
Avatar
Jupstar ✪
yeah i basically want to give all async tasks "thread time". but if they decide to yield, they should
you mean a fixed time slice with optional yielding? no, that's not possible
Avatar
Avatar
TsFreddie
multi companies are trying to form an age rating system for video games, but at this point the ratings are really stupid now.
pepeW
Avatar
Avatar
TsFreddie
but still no sexual material allowed for anyone and no video games until 18
no video games until 18? oO
14:27
that sounds impossible to enforce, even in china
Avatar
well on paper
Avatar
don't children have smartphones?
14:27
don't you worry
14:28
with the power of the great firewall, only registered games are playable to most people i think
14:28
and all video games published here are required to ID check
Avatar
do people <18 actually not play games?
14:28
what about the apple app store? does apple allow control there?
Avatar
Avatar
Ewan
some would say the tech industry in the western world is run by adderall
i have never taken these drugs
Avatar
apple store are censored
Avatar
Avatar
Ryozuki
i have never taken these drugs
sorry my American brain defaults to western world = usa
Avatar
apple as a legal business in china have to comply with local law so not really surprising?
Avatar
because you are not in the western hemisphere
Avatar
Avatar
Ewan
one of my neighbors works at a 7-11 and he wears full face protection as to conceal his identity (???) and wears a bodycam at all time
america kek
Avatar
Avatar
TsFreddie
apple as a legal business in china have to comply with local law so not really surprising?
no games in the apple app store unless you prove to be 18+?
Avatar
you can download some
14:30
no
14:30
you can download games
Avatar
here most 24h stores or places that sell till late are run by pakistanies or turks, and they just have shitload of cameras and well they are always in group
Avatar
Avatar
heinrich5991
you mean a fixed time slice with optional yielding? no, that's not possible
i actually don't care how long the task runs. it should just not block
Avatar
Avatar
heinrich5991
do people <18 actually not play games?
also interested in the answer to this, I would have thought this to be actually impossible @TsFreddie
Avatar
but you can't login
14:30
none of the games are offline
Avatar
Avatar
Jupstar ✪
i actually don't care how long the task runs. it should just not block
block in a sense of io blocking
14:30
not bcs of runtime
Avatar
it's not allowed to publish offline video games unless the platform itself has age verification but the platform has to be registered as a publisher
Avatar
Avatar
Jupstar ✪
not bcs of runtime
there's no enforcement of this AFAIK
14:31
in rust
14:31
note that even println! is IO ^^
Avatar
println is slow iirc
Avatar
Avatar
heinrich5991
note that even println! is IO ^^
yeah it also doesnt exist on WASM by default
Avatar
Avatar
heinrich5991
also interested in the answer to this, I would have thought this to be actually impossible @TsFreddie
legally you can play games as under age, but it was like 3 hours per week and only on friday saturday and sunday between 8 and 9 pm
Avatar
getting the io lock and writing is faster i think
Avatar
and the illegal way is just steam
14:31
i think mobile game are basically no way around
Avatar
Avatar
Ryozuki
getting the io lock and writing is faster i think
yes, but kind of unrelated to the question at hand
Avatar
Avatar
Ryozuki
i dont wanna sound rude, but somehow lately it feels everyone on internet has adhd
the symptoms of adhd are pretty relatable..and just reading about it makes u think u may have it
Avatar
Avatar
Dreamless
the symptoms of adhd are pretty relatable..and just reading about it makes u think u may have it
well my point was not that anyway
Avatar
i personally didn't find these stuff difficult, but I constantly see people asking how to register other games, which involves proxies and stuff
Avatar
ok, so in a typical school class of 14 year old people. how many would play video games? @TsFreddie
Avatar
for pc, steam is available with no age restriction
Avatar
its just people using their possible neuropathies (or idk the word) as a sense of look i have this, and trying to make it as if its a valid point in their argument kind of thing (edited)
Avatar
Avatar
heinrich5991
ok, so in a typical school class of 14 year old people. how many would play video games? @TsFreddie
honestly, no idea
14:33
the restriction is emposed two years ago
14:33
i'm already an adult
14:33
if you want my personal experience at age 14. then ye, i don't think anyone played any video games
Avatar
@TsFreddie do families follow the restriction at homes
14:34
or just let the kid play
Avatar
Avatar
TsFreddie
if you want my personal experience at age 14. then ye, i don't think anyone played any video games
damn
14:34
sad life
Avatar
cuz phones aren't allowed at all at school and school hours were like 6am to 11pm
Avatar
Avatar
TsFreddie
legally you can play games as under age, but it was like 3 hours per week and only on friday saturday and sunday between 8 and 9 pm
I think this thing existed 10 years ago aswell..I used to play on chinese gameservers that doesn't allow u to play more than 3hours/day if you don't have verified age identity
Avatar
no phones in school
14:34
another stupid rule
Avatar
Avatar
Dreamless
I think this thing existed 10 years ago aswell..I used to play on chinese gameservers that doesn't allow u to play more than 3hours/day if you don't have verified age identity
that's per day. it is changed to per week on specific hours
14:35
i think a crack down on education hours put a lot of student back at home off school, so they just restricted more on video games (edited)
14:35
it's probably illegal to hold school hours after 6pm now
Avatar
@Dreamless are u from china?
Avatar
I watched the change happen while we were working on a moblie game
14:37
it was so stupid
14:37
most mobile game changed their targeted audience overnight
Avatar
well limiting in this way what peopel can do is stupid
Avatar
Avatar
heinrich5991
there's no enforcement of this AFAIK
i mean somehow tokio does this internally. all i want is control over it xd try_run_tasks so i guess it doesn't exists, rip
Avatar
Avatar
Ryozuki
@Dreamless are u from china?
Nope, but I'm chinese xd
Avatar
@TsFreddie do u feel chinese anime will ever be something good
Avatar
maybe
14:38
i mean
Avatar
Avatar
Jupstar ✪
i mean somehow tokio does this internally. all i want is control over it xd try_run_tasks so i guess it doesn't exists, rip
if you do std::io/std::fs in a tokio task, tokio can't interrupt you
Avatar
i hope so?
14:38
i don't watch them tho
Avatar
Avatar
heinrich5991
if you do std::io/std::fs in a tokio task, tokio can't interrupt you
yes, but ofc i use the tokio variants
Avatar
ah
14:38
now I understand the question
Avatar
@TsFreddie i know i wont watch chinese anime, because idk why but i cant stand chinese in anime, japanese sounds way better and fluid for me idk
Avatar
let me think
Avatar
maybe im just too used to it
14:38
i also dislike korean
Avatar
Avatar
Ryozuki
@TsFreddie i know i wont watch chinese anime, because idk why but i cant stand chinese in anime, japanese sounds way better and fluid for me idk
chinese people feels the same way actually
Avatar
korean manhwa is good af tho
Avatar
@Jupstar ✪ you could probably "just" call the poll function of all the futures you're interested in
Avatar
Avatar
TsFreddie
chinese people feels the same way actually
actually stratch that, i can't speak for all chinese people anyway
Avatar
@TsFreddie chinese manga is usually a bit boring too, and i think they cant put too much fanservice if u get what i mean
14:40
or blood
Avatar
personally i think chinese voice acting is too new and still adjusting to the influence from japanese culture
Avatar
i mean japanese Seiyū are on another level
14:41
its what makes anime so epic
Avatar
the old chinese cartoon voice acting are decent with that era of animation styles. but the traditional animation studio are disappearing.
Avatar
Avatar
heinrich5991
@Jupstar ✪ you could probably "just" call the poll function of all the futures you're interested in
actually I'm probably not entirely sure whether I understand what you want yet
Avatar
not in that new stuff sucks, i just think they probably need to re-establish they acting principles from scratch cuz they are just trying to sound japanese while speaking chinese at this moment
Avatar
Avatar
Ryozuki
https://www.youtube.com/watch?v=GsnxhALA-x4 also i love the english-japanese accent
have you watched any english dub
Avatar
u think im a sinner?
Avatar
english dub is probably how i feel about chinese voice acting at this stage
Avatar
i cannot stand dubs
Avatar
i kinda wish the traditional chinese animation could make a modern return tho
14:44
don't know how
Avatar
Avatar
heinrich5991
actually I'm probably not entirely sure whether I understand what you want yet
normal tokio will run tasks in the background. when a task yields, it puts the task at the end of the queue again (and handles it later) or smth like that i basically want to run the queue too, and if a task yields. want to ignore it for now (until the next time my wasm module is called)
Avatar
but I wish
Avatar
i can’t stand voice acting in general
Avatar
Avatar
Jupstar ✪
normal tokio will run tasks in the background. when a task yields, it puts the task at the end of the queue again (and handles it later) or smth like that i basically want to run the queue too, and if a task yields. want to ignore it for now (until the next time my wasm module is called)
ah, so you want to be the executor yourself, somehow?
Avatar
yes
Avatar
perhaps you could patch tokio to do that?
Avatar
maybe xd
14:45
well i guess for now i'll change my strategy and not directly support async code
Avatar
Hey, Please provide wasm support to this library. Networking is one of the important feature to work on Rust+WASM codes. Not sure is there any tracker for this. Happy to contribute if any. Thanks
14:46
This tracks outstanding issues to stabilize WASI support for Tokio. Initial PR: #4716 Known issues: tests were disabled and need to be re-enabled tokio::time can be stabilized. Use target_family = ...
Avatar
well generally tokio works on WASM, but i can only block_on tasks
14:46
and that's smth i don't want
14:46
and over WASI i am not sure if they allow threads to run
14:47
which i do not want
Avatar
holy moly, how is it 11pm already. i feel like i just got home
Avatar
gn everyone
Avatar
good night
Avatar
@Ewan u wont sleep right
Avatar
ur awake
Avatar
I’m getting my car
15:10
It’s 9am
15:10
did u sleep
Avatar
time flies
15:10
indeed
15:11
I’m never paying to fix a starter again
15:12
My wallet hurts
Avatar
Avatar
Ryozuki
i mean i think u cant forcefully make a task yield
yield_now() ?
Avatar
i was hoping the mechanic would do a bit more thorough of an inspection. looks like he didn't catch the rotor damage i have on the front passenger's side (edited)
15:33
says brake pads have 80% left but i know that right one's squeaking already
15:33
xd
15:33
highway robbery
Avatar
@Learath2 my point is that u cant make a task yield between its await points
15:33
cuz its cooperative
15:34
but i meant outside of the task
15:34
idk how to say it
15:34
xd
Avatar
Avatar
Ryozuki
@Learath2 my point is that u cant make a task yield between its await points
Well yeah this one is impossible
15:41
That sort of interrupt you'll have to be on a lower level
Avatar
Avatar
Jupstar ✪
in maplayers.cpp there often is a calculation * 6 * sizeof(unsigned int) u can change all occurances to remove the *6 * sizeof(...) and then apply it in the TileLayerVisual instead
But that wouldn't fix or explain my issue. It seems like while loading a 10x10k map ddnet takes about 11GBs of ram. When finished it takes about 800mb which is expected (edited)
Avatar
Avatar
Teero
But that wouldn't fix or explain my issue. It seems like while loading a 10x10k map ddnet takes about 11GBs of ram. When finished it takes about 800mb which is expected (edited)
then it takes 11GB vram
16:10
is the 10kx10k map full of tiles?
16:10
like no air
Avatar
There is air
16:11
It's a maze generation including hook unhook freeze and air (edited)
Avatar
10kx10k is quite a lot xd
16:12
100 million tiles
Avatar
But it should still not take 11 gigs
Avatar
storing 100 million tiles on the GPU
16:12
with 11 gigs
16:12
sounds ok xd
16:13
it's also per layer ofc
Avatar
huh? When the map is loaded my GPU memory isn't even half full and those 11gigs disintegrate in to nothing
Avatar
mh
16:14
i think in a worst case the driver doubles the memory
16:14
so i dunno where u get that 11gigs from
Avatar
It's the same across backends. Usually it should only take 10000*10000*32 bits right? (edited)
Avatar
Avatar
Teero
It's the same across backends. Usually it should only take 10000*10000*32 bits right? (edited)
this is for gpu, in gpu world everything is compact, but in ram space it may get multiplied many times
Avatar
I'll get on my PC and send the map. brb
Avatar
Avatar
Teero
It's the same across backends. Usually it should only take 10000*10000*32 bits right? (edited)
well one quad has 4 vertices
👆 4
Avatar
Avatar
アリヂン
this is for gpu, in gpu world everything is compact, but in ram space it may get multiplied many times
this is not even close for reasons stated above ^
Avatar
1 vertex can contain a coordinate, and a 3d texture coordinate
16:19
and actually even a color
16:19
the color is normalized to u8
16:19
4bytes for color, 12 bytes for tex coords and 8 bytes for the position
Avatar
Then why does it only take so much space when initialising and why can I render it in the editor fine?
Avatar
Avatar
Teero
Then why does it only take so much space when initialising and why can I render it in the editor fine?
the editor uploads stuff on fly
Avatar
I'm only using the game layer
Avatar
when that one padding u8 is taking up extra 500mb space xd
Avatar
i dunno why it fills to 11 gigs. but i'd be surprised if your VRAM is not at around at least 5 gigs
Avatar
Avatar
アリヂン
when that one padding u8 is taking up extra 500mb space xd
nah it won't do that i think
Avatar
ik, im just joking
Avatar
@Teero can u send a screenshot of one of these maps in the editor?
Avatar
this is gameplay
Avatar
according to the calculator each tile would take up ~120 bytes
Avatar
Avatar
Teero
this is gameplay
i mean a screenshot with editor panel 😄
Avatar
Avatar
Jupstar ✪
i mean a screenshot with editor panel 😄
uhh xd
16:23
Avatar
Avatar
Teero
this is gameplay
a totaly possible gores map
Avatar
Avatar
Teero
Click to see attachment 🖼️
ah ok, can u just share the map?
pepeW 3
16:24
use your eyes xd
Avatar
i can't load my eyes into ddnet
Avatar
Avatar
Teero
Click to see attachment 🖼️
^
Avatar
Avatar
Teero
Click to see attachment 🖼️
AAAAA
16:25
thanks
Avatar
yea is sent that map back in time after you asked your question ofc
Avatar
my arch storage is so small
16:25
i'm sweeting
Avatar
Avatar
Jupstar ✪
my arch storage is so small
YOU SHOULD cargo clean YOUR PROJECTS NOW!!!
Avatar
Avatar
Jupstar ✪
my arch storage is so small
ik y and I won't tell xD
justatest 1
Avatar
Avatar
Mr.Gh0s7
ik y and I won't tell xD
xd that indeed takes like 5 gigs, but still ok
Avatar
Avatar
Jupstar ✪
Click to see attachment 🖼️
@Teero all except staging is VRAM
16:27
so 7.6 GB VRAM
Avatar
I still have to contact Chiller because idk if he's intersted
Avatar
>>> 10000 * 10000 * 24 * 4 / 1024 / 1024 / 1024 8.940696716308594
16:28
maybe that 24 factor is wrong
16:28
here
Avatar
width * height * floats * bytes_per_float
Avatar
Avatar
Jupstar ✪
well one quad has 4 vertices
for a sec i thought you said 'well done' i was like damn
Avatar
Avatar
Teero
Click to see attachment 🖼️
yep, but you have to understand one thing ddnet, having both opengl and vulkan, does not write into driver memory directly
16:29
so it can happen that some of the upload buffers exist twice
16:29
once by the driver, once by us
Avatar
that is shit
Avatar
i mean even without that, it would still use like 8GB RAM
Avatar
Why do you need 10k x 10k
👋 1
Avatar
Avatar
Tater
Why do you need 10k x 10k
need for speed
Avatar
kek
16:30
it's a square. 5kx5k would already be 4 times smaller
Avatar
my goal is 100x100k but ig its a little bit far fetched
Avatar
2.5kx2.5k would be 16 times smaller
Avatar
Avatar
Tater
Why do you need 10k x 10k
probably for some kind of machine learning justatest
justatest 1
Avatar
Avatar
Jupstar ✪
2.5kx2.5k would be 16 times smaller
is there a reason not to render tiles like in the editor?
Avatar
@Teero if u don't share it in public. simply use opengl 1.x
Avatar
whats the diff?
Avatar
opengl 1 uses the same method as editor
16:32
but it will be slower, if that matters for u
Avatar
Avatar
Tater
Why do you need 10k x 10k
yea isn't even springlobe like 3k x 3k xd
Avatar
I think it would be easier to rewrite the game and server to procedurally render and physics the map if you want 100k x 100k
Avatar
still 10k is within the realm of possibility
16:32
opengl 1.4 is soooo fast
pepeW 1
Avatar
@Jupstar ✪ i love you
16:33
thx
Avatar
Avatar
Tater
I think it would be easier to rewrite the game and server to procedurally render and physics the map if you want 100k x 100k
Let's hope for @Learath2 and @zogtib to do it for us ;)
Avatar
what gpu do you have that the 1.4 driver is rly better than vulkan
16:33
sad
Avatar
Vulkan is not faster??
Avatar
it definitely can be
Avatar
the 10x10k gets loadded in 1 second
Avatar
Avatar
Tater
Vulkan is not faster??
it is faster in rendering
Avatar
but it does buffering
Avatar
vulkan is more memory consuming i think, cuz pipelines and stuff
Avatar
vulkan is why i can have 2k skins
16:34
system memory backing for textures and such
Avatar
Avatar
Ewan
vulkan is why i can have 2k skins
buy rtx 4090
16:34
no thanks
Avatar
20x20k works wooooh
Avatar
People using 2k skins when the entire skin takes up 100x100 pixels on their screen
Avatar
i love it
Avatar
Avatar
Tater
People using 2k skins when the entire skin takes up 100x100 pixels on their screen
it's more sentimental
Avatar
Avatar
Teero
20x20k works wooooh
btw besides the RAM limit, the physics will not work correctly anyway
Avatar
Avatar
Tater
People using 2k skins when the entire skin takes up 100x100 pixels on their screen
but for some reason hd textures still look better
Avatar
yea sure floating point rambazamba will be ther
16:37
but client crashes it seems when i make a 100000x100000 map in the editor
Avatar
when it can write directly into vulkan driver memory it takes around 6 seconds for me
16:38
without open = excluding opening the file
16:38
but tbh it probably is so slow for a different reason
16:38
our current map format saves air tiles
16:39
so it iterates over all air tiles too
Avatar
@Patiga how did u solve that issue with your tw-gpu
Avatar
air tiles?
Avatar
iterating over them
16:39
when openinig the file
16:39
it kinda sucks xd
Avatar
don't actually think that this is an issue, it should be quick
Avatar
Avatar
Teero
hmmm
how big was that? 😄
Avatar
I mean I upload the 2d-array to the gpu anyways ^^
Avatar
Avatar
Jupstar ✪
when it can write directly into vulkan driver memory it takes around 6 seconds for me
@Patiga well apparently it takes 6.3 seconds to create the buffer
16:40
and i kinda doubt it's the allocation or mem_copy
16:41
soon i'll try out a better file map format
16:41
i dislike the current for some obvious reasons anyway
Avatar
it seems i need to upgrade my swapfile
Avatar
Original message was deleted or could not be loaded.
sounds sane. just buy better hardware xd
Avatar
Original message was deleted or could not be loaded.
but why Bits to GBytes?
Avatar
Avatar
Jupstar ✪
@Patiga well apparently it takes 6.3 seconds to create the buffer
well tbf its an unreasonable map, can't test it straight away coz I don't render the game layer
Avatar
or why 4*32 ?
16:43
but why *4?
Avatar
it does CTile *pNewData = new CTile[NewW * NewH];
Avatar
Avatar
Patiga
well tbf its an unreasonable map, can't test it straight away coz I don't render the game layer
ah right
Avatar
100000*100000 (edited)
Avatar
Avatar
Teero
it does CTile *pNewData = new CTile[NewW * NewH];
yeah all fine
16:43
but unsigned char is 8 bits
16:43
1 byte
16:43
i read int
16:43
mb
16:43
cant read
Avatar
btw the challenge here for linux or what u use, is allocating it in one block xD
16:44
i also don't have enough RAM :c
Avatar
okay it is still 40 gigs though
16:45
i only have 32 + 4gb swap
Avatar
i have enough with swap on my debian install
16:45
but not on my arch 😂
16:46
but i'm not sure if the allocation works tho
16:46
i mean linux is good, maybe it works there xdd
16:46
but this is really a weird allocation
Avatar
i could do a 50x50k map though
Avatar
i really wonder why such map sizes help for training
16:47
as said the physics are broken at these coordinates
Avatar
they dont im just having fun
Avatar
oh ok
16:47
you really thought i was doing smth useful
16:47
ill do a AStar timelapse maybe
Avatar
Avatar
Teero
you really thought i was doing smth useful
yes i totally expected that XD
Avatar
I would suggest a max size of like 8k (8192), as it is the first power of two after the biggest map size in ddnet
Avatar
seems like 50x50k gives me a bad alloc in the editor ;( 50x42k works fine ig
Avatar
(and map size matters for the raycast tilemap rendering approach)
Avatar
i suggest that RAM prices drop so hard that everyone has 512GB
Avatar
Avatar
Jupstar ✪
i suggest that RAM prices drop so hard that everyone has 512GB
i live on ddr2
Avatar
512 gb of ddr2 is probably pretty cheap but it's impossible to make a system with that much ddr2
Avatar
yeah
17:13
DDR4 Module von Samsung | 64GB Samsung DDR4-3200 DIMM CL22 Single :: Lagernd :: über 1.170 verkauft :: 26 Jahre Kompetenz | Hier bestellen
17:13
64gb ddr4 for 122€
Avatar
i have 8 times 4 gigs in my system
Avatar
256GB RAM total if ur mobo supports it
Avatar
Avatar
Learath2
I wonder if we can have the bot watch that channel and publish everything
We can, but we'll probably get ratelimited fairly quick. There's a 10 message per hour limit.
Avatar
bruhh i made the 50x42k map and the client crashed while saving it ;((
Avatar
Wait do they rate limit web hooks to 10 messages and hour?
Avatar
Avatar
Teero
bruhh i made the 50x42k map and the client crashed while saving it ;((
crashed or hanged
Avatar
Avatar
Tater
Wait do they rate limit web hooks to 10 messages and hour?
No, but publishing messages.
Avatar
segfaulted
Avatar
#records can be quite active at times, especially during new map releases.
Avatar
Avatar
Jupstar ✪
crashed or hanged
40x40 works
Avatar
epic
17:19
40MB file?
Avatar
wait ill check
17:19
more
17:20
82MB
17:20
xd
17:25
aaa
17:25
the server crashed while loading the 40x40 map
17:26
2023-10-13 19:25:33 I chat: *** 'Teero' called vote to change server option 'Map: BIG_MAZE' (No reason given) 2023-10-13 19:25:33 I chat: *** Vote passed [1] 8238 segmentation fault (core dumped) DDNet-Server welp its back to debugging
17:32
heres the map btw
jaouis 1
17:33
void CLayers::InitTilemapSkip() { for(int g = 0; g < NumGroups(); g++) { const CMapItemGroup *pGroup = GetGroup(g); for(int l = 0; l < pGroup->m_NumLayers; l++) { const CMapItemLayer *pLayer = GetLayer(pGroup->m_StartLayer + l); if(pLayer->m_Type == LAYERTYPE_TILES) { const CMapItemLayerTilemap *pTilemap = (CMapItemLayerTilemap *)pLayer; CTile *pTiles = (CTile *)m_pMap->GetData(pTilemap->m_Data); for(int y = 0; y < pTilemap->m_Height; y++) { for(int x = 1; x < pTilemap->m_Width;) { int SkippedX; for(SkippedX = 1; x + SkippedX < pTilemap->m_Width && SkippedX < 255; SkippedX++) { if(pTiles[y * pTilemap->m_Width + x + SkippedX].m_Index) <<< segfault break; } pTiles[y * pTilemap->m_Width + x].m_Skip = SkippedX - 1; x += SkippedX; } } } } } }
Avatar
We assume w * h does not cause an integer overflow in various places
17:35
For square maps, w * h overflows at around w = h = 46340
Avatar
hmm. width and height are 40k
17:35
or rather 40001
Avatar
are all types int?
17:36
like m_Width? (edited)
Avatar
In the map format yes, in other functions we try to switch to size_t
Avatar
this is C++, people don't know that number types other than int exist xd
Avatar
what does that function even do? i mean void CLayers::InitTilemapSkip()
Avatar
It initializes m_Skip for tiles. This is used to skip tiles which are empty during rendering (at least before the fancy buffering)
Avatar
Avatar
Teero
void CLayers::InitTilemapSkip() { for(int g = 0; g < NumGroups(); g++) { const CMapItemGroup *pGroup = GetGroup(g); for(int l = 0; l < pGroup->m_NumLayers; l++) { const CMapItemLayer *pLayer = GetLayer(pGroup->m_StartLayer + l); if(pLayer->m_Type == LAYERTYPE_TILES) { const CMapItemLayerTilemap *pTilemap = (CMapItemLayerTilemap *)pLayer; CTile *pTiles = (CTile *)m_pMap->GetData(pTilemap->m_Data); for(int y = 0; y < pTilemap->m_Height; y++) { for(int x = 1; x < pTilemap->m_Width;) { int SkippedX; for(SkippedX = 1; x + SkippedX < pTilemap->m_Width && SkippedX < 255; SkippedX++) { if(pTiles[y * pTilemap->m_Width + x + SkippedX].m_Index) <<< segfault break; } pTiles[y * pTilemap->m_Width + x].m_Skip = SkippedX - 1; x += SkippedX; } } } } } }
it actually segfaults when it converts index into a pointer i think, cuz u gotta multiply index by size of one tile and add array base pointer (edited)
17:41
+1 reason to rewrite ddnet in rust brownbear
Avatar
pTiles is just not constructed correctly
17:45
or rather whatever is behind pTiles
Avatar
but it segfaults when trying to access it, not because of what's inside?
17:47
im sure u wont be able to open a map this huge without rewriting a lot of ints into long longs :)
Avatar
#define int long long int santatrollet
pepeH 2
Avatar
This PR removes the idea of "pages" from the console and instead replaces it with "lines". This makes it now possible to navigate the consoles content by using the scroll wheel. It's still possible to use PageUp and PageDown, which would go down/up the amount of entries rendered. Other bugs fixed
  • The console now properly keeps the scroll position when new entries are added.
  • Active page getting reset sometimes when opening/closing console (closes #6902)
One thing I wanted to fi...
Avatar
there might be a major bug.
18:31
since i should even be able to load the map if its only ints. 40000*40000 i only 1,600,000,000 which is way under the limit.
18:31
it also seems like the pTiles array is exactly as big as the file size which should not be the case
Avatar
See commit messages.

Checklist

  • [X] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially base/) or added coverage to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet...
Avatar
Avatar
murpi
#records can be quite active at times, especially during new map releases.
I don't know if it ever reached 10 messages an hour tho
🆗 1
19:58
a19c51f Remove unused CHUNKFLAG_BIGSIZE - Robyt3 7a624d7 Ensure demo player listener is initialized - Robyt3 543e63e Use IO_MAX_PATH_LENGTH for demo recorder/player filenames - Robyt3 a0b708a Assert that demo recording/playback are properly started/stopped - Robyt3 9030c5b Refactor CDemoEditor, fix clang-tidy NOLINT - Robyt3 1513946 Merge pull request #7341 from Robyt3/Engine-Demo-Editor-Refactoring - def-
Avatar
There is no reason to slice a demo while currently rendering it and it may cause issues because multiple demo players would access the same IVideo instance.

Checklist

  • [X] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially base/) or added coverage to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [...
20:12
Previously all sliced demos used type "client", even if the original demo had type "server". Now the type of the original demo is copied when slicing.

Checklist

  • [X] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially base/) or added coverage to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Chang...
Avatar
I’m going to take a nap
Avatar
Avatar
Teero
since i should even be able to load the map if its only ints. 40000*40000 i only 1,600,000,000 which is way under the limit.
the actual data size is over is an additional factor of 4, which should bring it over the limit
21:42
and the data size is also stored as a signed 32 bit integer in the map
Avatar
So the maximum size of a square game layer should be 23170x23170
Avatar
ac1864b Update frontpage video - def-
22:19
172f316 Disable demo slice button while demo is being rendered - Robyt3 c4a6955 Merge pull request #7342 from Robyt3/Demo-Render-Slice-Disable - def-
22:19
3af7de3 Preserve demo type when slicing - Robyt3 9046668 Merge pull request #7343 from Robyt3/Engine-Demo-Editor-Type-Preservation - def-
Exported 699 message(s)