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 2024-10-31 00:00 and 2024-11-01 00:00
Avatar
"\xff\xff\xff\xffgetstatus" not working on ddnet?
Avatar
heinrich5991 2024-10-31 00:46
what is this? ^^
00:46
you can get status of all teeworlds and ddnet servers from https://master1.ddnet.org/ddnet/15/servers.json
Avatar
the objective is to connect to a game server using the UDP protocol, identify yourself as a player and collect information from the server, I tested it with other games and got a response, but with ddnet there is no return
Avatar
Is there a specific command for ddnet?
Avatar
ws-client BOT 2024-10-31 07:19
<ChillerDragon> @fregues if you want to identify yourself as a player to the server you have to speak the protocol and do a full token handshake. Its more than sending one message. But as heinrich already said the publicly listed servers data is served as json.
07:19
<ChillerDragon> @fregues what data exactly do you need?
Avatar
GitHub BOT 2024-10-31 07:35
3cead81 Add halloween graphics - def-
πŸ‡«πŸ‡· 1
Avatar
MilkeeyCat 2024-10-31 11:49
Github contributions are orange now boo
boo 5
Avatar
Avatar
MilkeeyCat
Github contributions are orange now boo
Jupstar βœͺ 2024-10-31 12:20
I am more scared about how empty my contribution history is boo
Avatar
imagine someone who can't tell the difference because it is empty
Avatar
Jupstar βœͺ 2024-10-31 12:45
@Robyt3 hello android pro. Have you ever made/have experience with an app with high multi threaded workload?
Avatar
Avatar
Jupstar βœͺ
I am more scared about how empty my contribution history is boo
All my contributions are in filthy for profit private repositories pepeW
Avatar
Avatar
Jupstar βœͺ
@Robyt3 hello android pro. Have you ever made/have experience with an app with high multi threaded workload?
With high workload you mean you want to perform heavy calculations on all CPU cores? I don't really have more experience except the DDNet multi threading, which isn't really doing heavy calculations. According to https://developer.android.com/topic/performance/threads we should lower the thread priority for background jobs so the UI thread can run smoother.
Generally, threads in the foreground group get about 95% of the total execution time from the device, while the background group gets roughly 5%.
Avatar
Avatar
Robyt3
With high workload you mean you want to perform heavy calculations on all CPU cores? I don't really have more experience except the DDNet multi threading, which isn't really doing heavy calculations. According to https://developer.android.com/topic/performance/threads we should lower the thread priority for background jobs so the UI thread can run smoother.
Generally, threads in the foreground group get about 95% of the total execution time from the device, while the background group gets roughly 5%.
Jupstar βœͺ 2024-10-31 13:42
Yeah, the point is when I tried some stuff with dd-pg on Android I noticed that the main thread got completely blocked if 2 threads consume lot of CPU resource (e.g. during compilation of shaders) I even tested it on different devices. So something limits my workload and available_parallelism is not really reliable.
13:43
I wonder if that is some energy saving mechanism or smth
13:43
I have 8 cores, so at least 4 should be able to be used
Avatar
yeah, I guess you need to be careful with threads since they inherit the priority from the thread that spawned them
13:43
Practically speaking, there’s a number of variables responsible for this, but picking a value (like 4, for starters), and testing it with Systrace is as solid a strategy as any other. You can use trial-and-error to discover the minimum number of threads you can use without running into problems.
13:43
Each thread costs a minimum of 64k of memory
Avatar
Avatar
Robyt3
yeah, I guess you need to be careful with threads since they inherit the priority from the thread that spawned them
Jupstar βœͺ 2024-10-31 13:44
Ok I try to lower the priority I use https://github.com/iddm/thread-priority for the main thread
Avatar
Jupstar βœͺ 2024-10-31 14:08
The low prio threads dominate, and for some reason they still block the main thread :c
14:08
I assume the last 4 cores are the performance cores
Avatar
heinrich5991 2024-10-31 14:11
it doesn't look like they're blocked by CPU usage, the cores aren't at 100%
14:11
is the main thread waiting for something?
Avatar
Avatar
heinrich5991
it doesn't look like they're blocked by CPU usage, the cores aren't at 100%
Jupstar βœͺ 2024-10-31 14:11
That doesn't matter if that is the energy management. Especially that they aren't at 100% makes no sense
Avatar
Avatar
heinrich5991
is the main thread waiting for something?
Jupstar βœͺ 2024-10-31 14:12
No
Avatar
heinrich5991 2024-10-31 14:12
oh, energy management means that the cores could be below 100% and no more CPU time is available?
Avatar
Jupstar βœͺ 2024-10-31 14:13
I guess good energy management means that CPU cores should clock as low as possible
14:13
I guess running 4 cores at 50% is much more efficient than even one at 100%
14:14
Too bad my desktop is too fast, I can't really see what happens there xD
14:15
The low prio threads are only some noise
14:15
Kinda funny how good androids output looks
14:16
Almost as if they have some structure
14:16
And on desktop just completely random mess
14:17
I can defs observe that no thread ever gets above 50% usage
14:18
Everytime that happens the kernel switches the core
14:20
Mh what I find interesting is that once the app is started mostly the first cores are used
14:21
Ah anyway Android is too complicated for me
14:22
I just want to spawn 50000 threads and get the task done
14:22
But if I only use 1 async thread it defs works as I expect it (edited)
14:22
It does the heavy stuff in parallel without blocking the main thread
14:29
But dunno it's exactly 2 threads. When I use 1 thread - perfect. 2 threads => main thread completely blocked
14:29
So weird
14:29
What tools can I use on android to see what happens xd
14:29
Why do I not have a Linux phone xd
14:29
(a proper 😏 )
Avatar
Jupstar βœͺ 2024-10-31 14:57
@heinrich5991 you once suggested https://github.com/tokio-rs/tracing to #[instrument] the code. But I dunno, should I put that on every function in my whole code base or what
Avatar
How long can the sounds in tw be? Can I replace the hook sound with an hour long sound of a construction site?
Avatar
Avatar
Teero
How long can the sounds in tw be? Can I replace the hook sound with an hour long sound of a construction site?
Jupstar βœͺ 2024-10-31 15:22
I think yes
Avatar
Avatar
Jupstar βœͺ
I think yes
Ah finally I can make my dream come true
Avatar
Jupstar βœͺ 2024-10-31 15:23
If you have too many sounds the thread might hang tho
15:23
since it's to slow to fill buffers
15:23
But knowing ddnet code, it probs has a limit anyway
Avatar
Avatar
Teero
Ah finally I can make my dream come true
Jupstar βœͺ 2024-10-31 15:24
Avatar
Avatar
Jupstar βœͺ
My connection isn't good enough for anything more than text crntly
15:25
Takes some secs to even send the msg
Avatar
Avatar
Teero
My connection isn't good enough for anything more than text crntly
Jupstar βœͺ 2024-10-31 15:25
Ah sounds like you travel in germany
Avatar
Avatar
Jupstar βœͺ
I guess good energy management means that CPU cores should clock as low as possible
Mostly but not always! There is some time-based power usage, so it can be more efficient to run at a higher clock speed and then go to sleep instead of running for longer at a lower clock speed. But the graphs I remembered for that were from 2010 or so
Avatar
Avatar
deen
Mostly but not always! There is some time-based power usage, so it can be more efficient to run at a higher clock speed and then go to sleep instead of running for longer at a lower clock speed. But the graphs I remembered for that were from 2010 or so
Jupstar βœͺ 2024-10-31 15:33
Ah interesting. And are you by chance an Android pro and know the behavior there? xd
Avatar
Jupstar βœͺ 2024-10-31 15:33
I let my async task sleep for 10 seconds before they start now. The main thread works for exactly 10 seconds xD
15:33
Then it's rip
Avatar
heinrich5991 2024-10-31 15:34
an android pro would probably ask whether you're on stock android or on some random vendor's rom
Avatar
no one is on stock android
Avatar
Jupstar βœͺ 2024-10-31 15:34
I am on stock, but I also tried on different phones
Avatar
Avatar
deen
no one is on stock android
Jupstar βœͺ 2024-10-31 15:34
Ok but not vendor at least πŸ˜„
Avatar
Avatar
deen
no one is on stock android
heinrich5991 2024-10-31 15:34
let's say close to stock
Avatar
Jupstar βœͺ 2024-10-31 15:34
Some open source thing
Avatar
even pixel has moved far from stock I thought
Avatar
Jupstar βœͺ 2024-10-31 15:35
crDroid
Avatar
heinrich5991 2024-10-31 15:35
that should be relatively close to stock, I think
Avatar
Jupstar βœͺ 2024-10-31 15:35
No google services 😬
15:35
I am savage
Avatar
heinrich5991 2024-10-31 15:35
not a random vendor's "battery optimizations" we're looking at
Avatar
Avatar
deen
even pixel has moved far from stock I thought
It looks like stock Android, just includes pixel-only features
Avatar
I'm on pixel D: what do you mean I'm not on stock android
Avatar
Avatar
jxsl13
I'm on pixel D: what do you mean I'm not on stock android
Get the AOSP build and see how far from stock Pixel is now
feelsbadman 1
Avatar
Avatar
jxsl13
I'm on pixel D: what do you mean I'm not on stock android
you are on stock android with pixel features
πŸš€ 1
16:28
technically
16:28
which pixel
Avatar
Avatar
ReiTW
you are on stock android with pixel features
Go be fair, all android are based on AOSP πŸ˜„
Avatar
Avatar
Learath2
Go be fair, all android are based on AOSP πŸ˜„
ye but samsung OneUI overlay makes it feel it's smth completly different
Avatar
Avatar
jxsl13
7a
ah nice
16:40
been having fun with the 9 pro
Avatar
Avatar
ReiTW
ye but samsung OneUI overlay makes it feel it's smth completly different
I guess pixel is the closest to stock in that sense yeah
Avatar
I got a custom launcher, so my phones lioked nearly the same for like the past 8 years
16:42
looked
16:42
kek
Avatar
Jupstar βœͺ 2024-10-31 16:45
I swear these codecov fks are so annoying xdd
16:46
I get so many emails from them the last months
16:46
Why do they update their privacy policy so often
16:46
I didn't even opt-into their emails xD
Avatar
MilkeeyCat 2024-10-31 18:29
@Learath2 modules almost done :clueless:
Avatar
MilkeeyCat 2024-10-31 19:40
Oooh yea, it feels nice
Avatar
Avatar
Teero
How long can the sounds in tw be? Can I replace the hook sound with an hour long sound of a construction site?
Koll Potato 2024-10-31 19:44
metal pipe falling sound for hammer
19:44
that would be epic
Avatar
GitHub BOT 2024-10-31 20:34
Fixes #9181 !image

Checklist

  • [x] Tested the change ingame
  • [x] 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
  • [ ...
Avatar
Neat, another self-referencing structs crate I hadn’t known of before (but now I do because of your recent-ish blog post). πŸŽ‰ You might have seen me before on the issue trackers of many other self-r...
20:43
@heinrich5991
20:43
i found a comment related to the issue we had
20:43
&'a Foo<'a> issue
Avatar
MilkeeyCat 2024-10-31 20:44
pff
20:44
what a nobo
20:44
everybody knows &'a T<'a> bad greenthing
Avatar
Would it be best to post feature requests/improvements on Github issues? I just wanted to suggest a smoother camera method for multi-view spectator mode when tees respawn.
Avatar
Avatar
Pathos
Would it be best to post feature requests/improvements on Github issues? I just wanted to suggest a smoother camera method for multi-view spectator mode when tees respawn.
yes, or #town-hall
πŸ‘ 1
21:46
6dc11bb Fix chat command preview overlap - KebsCS f827b6e Merge pull request #9183 from KebsCS/pr-fix-command-preview - def-
Avatar
GitHub BOT 2024-10-31 22:13
When players respawn, the camera jumps very fast, basically disregarding the smoothness commands/configs. Please make this smoother thank you :)
Avatar
good night guys! is there any way to go around with redirecting from one port to another when registering to master server?
22:19
i can connect to the server without any problem with raw ip but it will not register on master because original port is "closed"
Avatar
GitHub BOT 2024-10-31 23:17
Log more detailed error messages when fonts could not be loaded and when the font index is malformed. Show warning popup on client launch if any font failed to load, although this warning won't be readable if all fonts failed to be loaded.

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 te...
Exported 116 message(s)
Timezone: UTC+0