Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.tw/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-04-25 00:00:00Z and 2023-04-26 00:00:00Z
Avatar
Avatar
πŠπ‘π€π‹
I want the server to record user information, such as level, etc.
for indie dev i highly recommend existing solution (like microsoft's playfab), less effort, not that much more expensive than hosting your own server for the user base you're expecting to have.
πŸ˜ƒ 1
02:25
or if you expect to publish on a single platform (like steam), using the platform's service directly (usually for free) is a good idea too.
Avatar
Avatar
TsFreddie
or if you expect to publish on a single platform (like steam), using the platform's service directly (usually for free) is a good idea too.
πŠπ‘π€π‹ 2023-04-25 02:28:00Z
thanks i will look into it
Avatar
fred how r u doing
03:54
I'm waiting for my KFC
04:01
Haven’t had KFC in a minute
Avatar
ChillerDragon BOT 2023-04-25 06:30:51Z
@Robyt3 do you play ddnet? if yes under which name?
Avatar
woah i never even thought of that
Avatar
Jupstar βœͺ 2023-04-25 07:00:03Z
Robyt3 in-game is Robyt3
Avatar
ChillerDragon BOT 2023-04-25 07:16:58Z
rly jopsti?
07:17
but does he play?
07:17
07:17
where did my c++ line numbers go :(
07:17
`` CC=clang CXX=clang++ CXXFLAGS="-fsanitize=address,undefined -fsanitize-recover=address,undefined -fno-omit-frame-pointer" CFLAGS="-fsanitize=address,undefined -fsanitize-recover=address,undefined -fno-omit-frame-pointer" cmake .. -DCMAKE_BUILD_TYPE=Debug -DHEADLESS_CLIENT=ON -DCURSES_CLIENT=ON
07:18
a
07:18
fk
07:18
i compiled like this CC=clang CXX=clang++ CXXFLAGS="-fsanitize=address,undefined -fsanitize-recover=address,undefined -fno-omit-frame-pointer" CFLAGS="-fsanitize=address,undefined -fsanitize-recover=address,undefined -fno-omit-frame-pointer" cmake .. -DCMAKE_BUILD_TYPE=Debug -DHEADLESS_CLIENT=ON
07:18
yesterday i still had line numbers xd
07:19
DDNet: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 4.4.0, BuildID[sha1]=f4622ec1ca0e2802458ccca060d681619257dfc8, with debug_info, not stripped
07:19
not stripped they say
07:19
and yet asan giving me the full lap dance
πŸ˜ƒ 1
07:20
watf
07:20
@Robyt3 you dont play very much then i assume? whats your motivation for working so much on the code base then?
Avatar
Jupstar βœͺ 2023-04-25 07:28:04Z
Maybe he plays lan server 24/7 xd
Avatar
I almost never play race. Used to play vanilla or some other PVP mods like Insta or Catch if there are enough players. I mostly just like to code nowadays.
Avatar
Jupstar βœͺ 2023-04-25 07:57:04Z
Honorable
07:57
Chiller u compiled as pie
07:58
I dunno if the sanitizers can handle address randomization
07:58
Mh but u in debug mode. Weird weird
Avatar
chillerdragon BOT 2023-04-25 08:23:53Z
I See. Well thanks for doing it :) (@Robyt3)
I almost never play race. Used to play vanilla or some other PVP mods like Insta or Catch if there are enough players. I mostly just like to code nowadays.
Avatar
who coded this bot
Avatar
@ChillerDragon hey random, apperantly all people here are stupid
09:56
shots fired
Avatar
note for future self: design a table you know will have a lot of records based on a date using psql partitioning, because later on will be a chore to migrate to partitioned tables
10:07
and cuz im lazy i just deleted old data
Avatar
Partitioning is about where my knowledge of SQL ends. I can sort of see it help with the issue you mentioned this morning but I also don't see why your original query performed so badly
Avatar
no index
10:14
or outdated index (when you insert/updated a lot on an indexed table, you have to recreate the index from time to time) (edited)
Avatar
Avatar
Learath2
Partitioning is about where my knowledge of SQL ends. I can sort of see it help with the issue you mentioned this morning but I also don't see why your original query performed so badly
idk it had 7million rows
Avatar
that's nothing
Avatar
He already had an index on the date
Avatar
Avatar
default
no index
dude if u dont know what utalk about better stfu
πŸ™ƒ 1
Avatar
Avatar
Ryozuki
explain analyze SELECT COUNT(*) as count, date(timezone('UTC', purchase_time)) as day from purchase GROUP BY date(timezone('UTC', purchase_time)) ORDER BY day DESC LIMIT 15; QUERY PLAN -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Limit (cost=1000.46..11744.04 rows=15 width=12) (actual time=1667.304..1700.836 rows=15 loops=1) -> Finalize GroupAggregate (cost=1000.46..341213.86 rows=475 width=12) (actual time=1667.302..1700.832 rows=15 loops=1) Group Key: (date(timezone('UTC'::text, purchase_time))) -> Gather Merge (cost=1000.46..341201.99 rows=950 width=12) (actual time=1666.905..1700.817 rows=31 loops=1) Workers Planned: 2 Workers Launched: 2 -> Partial GroupAggregate (cost=0.43..340092.31 rows=475 width=12) (actual time=15.057..1098.931 rows=291 loops=3) Group Key: date(timezone('UTC'::text, purchase_time)) -> Parallel Index Scan Backward using idx_purchase_purchase_time on purchase (cost=0.43..323734.62 rows=3270114 width=4) (actual time=0.029..975.622 rows=2609251 loops=3) Planning Time: 0.235 ms Execution Time: 1700.887 ms
the explain literally says it
Avatar
I do know what I am talking about
Avatar
sometimes u rly make me mad
10:15
no u dont know shit
10:15
u just blabber
Avatar
my company does the documents for most german companies
10:16
we have at least 50 million entries in a table
10:16
recreating the index from time to time helps
Avatar
if you were smart enough to create an index in the first place
Avatar
my god
10:16
im done
Avatar
not my fault you are not as smart
Avatar
(timeouted both for insulting each other)
Avatar
Don't wanna complain. But Heinrich banned me from the ddnet Server for things that happened outside of it.
Avatar
you timed him out and he left the server kekW
Avatar
Nah I have been banned @spur
10:33
how u talkin
Avatar
irc chat
Avatar
wtf is irc chat
Avatar
heinrich got no power here
10:34
heinrich is an odd person, have you ever seen him in a happy mood?
Avatar
he was visibly interested when I talked with him about Teeworlds bot in our dms
Avatar
he gets interested in things besides moderating this discord?
Avatar
Avatar
spur
heinrich is an odd person, have you ever seen him in a happy mood?
Jupstar βœͺ 2023-04-25 10:37:21Z
Well he might be bit strict very often, which makes normal conversations hard sometimes, but he is also very intelligent and does a lot for ddnet. If I assume right, he plays the role of a ddnet discord mod after rules he set himself and is pretty consistent about them. So basically like a robot xd
10:38
He can time out the bridge too default0
10:38
Poor chiller dragon
Avatar
Normal conversation is easy, discussions are where we have an issue usually. People get way too heated
Avatar
Would he take away every method for support
10:39
I already don't have any access to the reports channel anymore
10:39
I think
Avatar
Jupstar βœͺ 2023-04-25 10:40:06Z
Just say sorry and he will unban
10:40
Can't be so hard
Avatar
Meh
10:45
#freeryo
10:45
He is innocent
10:45
But I still believe that rebuilding the indexes was the smart move
Avatar
Jupstar βœͺ 2023-04-25 10:46:04Z
Aren't indices kept up to date
10:46
What would be the sense of them else
Avatar
I don't think so
Avatar
Jupstar βœͺ 2023-04-25 10:46:54Z
Would be surprising to me, but i am not biggest SQL/database lover
Avatar
They are, but they aren't guaranteed to be optimal when updated on the go
Avatar
Avatar
Learath2
They are, but they aren't guaranteed to be optimal when updated on the go
Jupstar βœͺ 2023-04-25 10:47:08Z
Ah makes sense
Avatar
Some things get fragmented
Avatar
I just know that we run even bigger Databases
10:50
And there is no way a proper table with 5M entries should be slow
10:51
But I have no knowledge on Ryos case
10:51
It was just mentioned by someone else
Avatar
Jupstar βœͺ 2023-04-25 10:52:03Z
Is still the question if indices are the problem here tho. Sounds more like the query is inefficient then
Avatar
could be the case if the query contains sql that checks (nearly) every entry - such as string comparisons
Avatar
Jupstar βœͺ 2023-04-25 10:53:34Z
I'd have assumed even without rebuilding the indices would be reasonable fast
10:54
Rebuilding sounds like a on top optimization of u know u are reading often and writing rarely
Avatar
Can't scroll up in this IRC chat to quote the other one. But the wording slow query was dropped.
10:54
rebuilding is not needed if you only read, rebuilding should be done nightly or when not used if you are inserting new entries to the table and update entries in general
Avatar
Jupstar βœͺ 2023-04-25 11:00:54Z
Anyway, i doubt ryo uses Ms stuff. So it this isn't a useful discussion without him anyway
Avatar
it would only be useless if that doesn't apply to SQL databases in general
Avatar
Jupstar βœͺ 2023-04-25 11:03:50Z
I cannot imagine that it is as much of a problem than it sounds from you. Ryo did vacuum and analyze do he probably is suspecting something already (edited)
Avatar
¯\_(ツ)_/¯
11:06
Also just checked. Rebuilding is done in other databases with the ANALYZE TABLE table_name; command
11:07
Some also have the OPTIMIZE TABLE tbl; command
Avatar
finally free
11:28
next time when i ask for something i will exclude this guy from it
11:28
since i dont enjoy convos with it
11:28
thats all ill say
Avatar
you can ignore me, but I will never be gone
11:29
πŸ‘»
Avatar
@Learath2 i suggest u simply make a special case for chiller on matrix, and disable irc
11:30
nobody uses it anyway
Avatar
Jupstar βœͺ 2023-04-25 11:32:54Z
Chiller cries in pain. He hates element BCS Js bloat XD. Btw chiller, did u ever try a terminal client?
Avatar
i think he tried weechat
11:33
with the matrix extension i told him
11:33
probs didnt like it
Avatar
Jupstar βœͺ 2023-04-25 11:33:18Z
I see
Avatar
I like having a method to join the developer chat without proprietary software
11:33
then simply not let ban evaders abuse it
Avatar
Jupstar βœͺ 2023-04-25 11:33:41Z
Is matrix proprietary?
Avatar
not that i know
11:33
maybe the client
Avatar
I was offline
11:33
matrix is open, irc is (more?) open
Avatar
i know its ok, told learath bu he has no perms
Avatar
he is +o on IRC
Avatar
irc is the most open, but also insecure
Avatar
Avatar
DefaultO
you can ignore me, but I will never be gone
Damn. thought u rq (edited)
Avatar
maybe he forgot the credentials?
Avatar
probably xd
11:34
but irc with the OTR extension is nice
Avatar
Avatar
DefaultO
you can ignore me, but I will never be gone
he became a fucking web-hook
Avatar
only works for private convos tho
Avatar
Avatar
heinrich5991
matrix is open, irc is (more?) open
Jupstar βœͺ 2023-04-25 11:34:41Z
Why tho, i can fully self host it. Or BCS of other reasons?
Avatar
@Jupstar βœͺ i think matrix can be federated
11:34
the problem its more complicated to setup
Avatar
IRC is a standard, matrix aims to be a standard but a lot of it is still "whatever synapse does"
Avatar
iu used to host a irc server
11:35
ircv3
11:35
A modular C++ IRC server (ircd). Contribute to inspircd/inspircd development by creating an account on GitHub.
11:35
i think most networks use this
11:35
i used it too
Avatar
unrealircd also exists I think
11:36
also twitch uses it IIRC
Avatar
Avatar
heinrich5991
IRC is a standard, matrix aims to be a standard but a lot of it is still "whatever synapse does"
Jupstar βœͺ 2023-04-25 11:37:35Z
So the development is less open?
Avatar
well irc is rly open in that there are lot of implementors right
11:38
idk how many matrix implementors are there
11:38
element is the dominant right
Avatar
Avatar
Jupstar βœͺ
So the development is less open?
yes, basically
Avatar
@heinrich5991 do u prefer mpv or vlc
Avatar
Avatar
Ryozuki
well irc is rly open in that there are lot of implementors right
there are a couple of alternative clients. last I checked (couple of years ago) they were far from usable with encryption
Avatar
Jupstar βœͺ 2023-04-25 11:39:11Z
I see. That explains why they need two million years to implement webrtc correctly lmao
Avatar
in the linux weeb world i heard many ppl say mpv is better than vlc
Avatar
I use mpv, I liked that it doesn't show user interface
Avatar
Jupstar βœͺ 2023-04-25 11:39:57Z
The only fast client i know is the CPP one. The web apps are all so slow when decrypting. Very avoiding
11:39
Annoying
Avatar
Avatar
Ryozuki
in the linux weeb world i heard many ppl say mpv is better than vlc
Jupstar βœͺ 2023-04-25 11:40:43Z
I think it generally has less problems(for me) but also less settings, at least over ui
Avatar
i had to use mpv to watch anime rn cuz i stopped emerge mid-qt
11:41
and vlc needs qt
11:41
its nice too yeah
11:41
i need to integrate it with rofi tho
Avatar
it also plays better with syncplay
Avatar
i.. lack a file browser
11:41
xD
Avatar
Jupstar βœͺ 2023-04-25 11:42:25Z
I use ffplay to replay streams tho. Seems to be the only player that minimized delay for rtmp
Avatar
does it work with twitch?
Avatar
Jupstar βœͺ 2023-04-25 11:43:00Z
I dunno, my friends and I use rtmp with nginx
Avatar
Jupstar βœͺ 2023-04-25 11:43:26Z
It's nice BCS higher quality streams
11:45
YouTube has a rtmp backend tho
11:45
At least for the stream upload
Avatar
Avatar
Ryozuki
in the linux weeb world i heard many ppl say mpv is better than vlc
VLC is not recommended because it often displays wrong colours, introduces visual artifacts, and breaks intensive subtitles. Here are some comparisons showing these issues -
> from thewiki.moe
Slowpoke Pics image comparison service
11:49
mpv
11:49
a quick read
Avatar
on windows it also links an ancient version of libass so some subtitles are broken, though I guess that's not a problem on linux
Avatar
it says it also decodes better with nvidia on linux, which i have
Avatar
though font caching is still weird
Avatar
and works better with tiling
11:49
which i have
11:50
libass is a good library name
Avatar
vlc would also upscale chroma with point for a long time, not sure if it still does that
Avatar
$drake vlc mpv
Avatar
mpv "$(ls -1 | rofi -dmenu)"
11:58
nice this works
11:59
i just realized im not using the full power of rofi
Avatar
Avatar
Ryozuki
mpv "$(ls -1 | rofi -dmenu)"
Jupstar βœͺ 2023-04-25 11:59:41Z
Fake ryo. Where is rust alternative
Avatar
Rofi: A window switcher, application launcher and dmenu replacement - GitHub - davatorium/rofi: Rofi: A window switcher, application launcher and dmenu replacement
12:00
idk anything as good as rofi in rust
12:01
bindsym --release Print exec maim -s --format=png /dev/stdout | xclip -selection clipboard -t image/png -i
12:01
this is my way to take screenshots
12:01
bindsym --release $mod+o exec maim -i $(xdotool getactivewindow) --format=png /dev/stdout | xclip -selection clipboard -t image/png -i to take a perfect screenshot of the active window
Avatar
Jupstar βœͺ 2023-04-25 12:02:04Z
Mhh
Avatar
i3 powa
12:02
bindsym $mod+d exec --no-startup-id rofi -show drun
12:02
and my program launcher
Avatar
Jupstar βœͺ 2023-04-25 12:02:55Z
Too nerdy for my workflow
Avatar
@Jupstar βœͺ im the fastest at opening firefox in the west
Avatar
Jupstar βœͺ 2023-04-25 12:04:55Z
Xd
12:05
Sad only that browsers are bloated slow software
12:06
12:06
bloat time
Avatar
Avatar
Jupstar βœͺ
Sad only that browsers are bloated slow software
worst offenders, cuz they take a lot to compile and they update a lot due to security issues i think
12:07
thats why i always run "upgrade --exclude "firefox""
12:07
upgrade is my script
12:08
alias upgrade='sudo emerge -avuDN @world'
12:09
ctf
Avatar
Jupstar βœͺ 2023-04-25 12:09:28Z
Just remove js brownbear
Avatar
Jupstar βœͺ 2023-04-25 12:09:56Z
I tested gpt4. Indeed a lot better than chatgpt.. but much slower
12:10
Good progress xd
Avatar
Avatar
arch1t3cht
vlc would also upscale chroma with point for a long time, not sure if it still does that
looks like it doesn't any more
Avatar
@arch1t3cht do u know if u can advance to delay subs
12:14
in vlc i know how to
12:14
sometimes i need that cuz unsync subs
Avatar
z and Z
Avatar
oh nice
Avatar
there's a nice hotkey cheat sheet somewhere
12:15
I think it was this one https://i.imgur.com/LNGJf4u.png
Avatar
matrix is just such a complicated thing, I honestly never quite enjoyed it
12:19
with homeservers and stuff it just makes my brain melt
Avatar
Avatar
Ryozuki
it says it also decodes better with nvidia on linux, which i have
Make sure you configure it properly, it didn't want to use nvenc by default for me
12:21
well nvdec in this case but yeah
Avatar
Avatar
Learath2
Make sure you configure it properly, it didn't want to use nvenc by default for me
how to xD
Avatar
Avatar
Ryozuki
how to xD
Well first check if it works out of the box
Avatar
it did
12:23
i watched a anime while eating
Avatar
I mean if it is using your gpu out of the box
Avatar
Jupstar βœͺ 2023-04-25 12:23:20Z
Why is it so expensive?
Avatar
it said gpu
Avatar
Avatar
Jupstar βœͺ
Why is it so expensive?
i mean noctua is the best brand for this
Avatar
Jupstar βœͺ 2023-04-25 12:24:04Z
Mh i dunno, but very expensive for a air cooler
Avatar
@Jupstar βœͺ which do u have
12:24
what temps
12:24
i reached 88 compiling gcc
12:24
xd
12:24
so idk anymore
12:24
i guess i need new cooler
12:24
the hyper 212 suxs
12:25
i read the 5800x is hard to cool cuz small die
12:25
or smth
Avatar
Avatar
Ryozuki
@Jupstar βœͺ which do u have
Jupstar βœͺ 2023-04-25 12:26:28Z
I have dark rock pro 3
12:26
And V4 costs like 80€
Avatar
@Ryozuki if it doesn't say nvdec or vdpau on the gpu line it's not using your gpu
Avatar
Jupstar βœͺ 2023-04-25 12:26:59Z
I doubt my cpu was ever over 70°
Avatar
AO: [pulse] 44100Hz stereo 2ch float VO: [gpu] 1920x1080 yuv420p AV: 00:00:02 / 00:24:00 (0%) A-V: 0.000
Avatar
Jupstar βœͺ 2023-04-25 12:27:29Z
Even with 16 cores. But maybe depends on fan target
Avatar
gpu there is the video output driver, gpu is the modern one
Avatar
Avatar
Ryozuki
AO: [pulse] 44100Hz stereo 2ch float VO: [gpu] 1920x1080 yuv420p AV: 00:00:02 / 00:24:00 (0%) A-V: 0.000
Yeah, that's not hardware decoding
12:28
Try starting with --hwdec
Avatar
hm same
12:29
@Learath2 do i need any flags
12:29
on gentoo
12:29
oh there is nvenc
Avatar
Yeah you want nvenc on gentoo
12:30
I also have vdpau enabled, not all applications can use nvenc/nvdec
12:32
There is one big problem with firefox on linux, it can't use vdpau or nvdec, only vaapi, so videos don't get decoded on gpu and it annoys me very much
Avatar
Jupstar βœͺ 2023-04-25 12:33:20Z
Sounds annoying indeed. I mostly use Firefox for exactly that^^ video Playback is awesome
Avatar
Avatar
Jupstar βœͺ
Sounds annoying indeed. I mostly use Firefox for exactly that^^ video Playback is awesome
Do you have it working on linux with hardware accelerated decoding?
Avatar
Avatar
Learath2
Do you have it working on linux with hardware accelerated decoding?
Jupstar βœͺ 2023-04-25 12:33:53Z
Yes but amd
12:34
It has vaapi backend
Avatar
Avatar
Learath2
matrix is just such a complicated thing, I honestly never quite enjoyed it
do you like xmpp?
Avatar
❯ rg vdpau make.conf 21:USE="X -wayland lm-sensors contrib mount alsa pulseaudio xinerama opengl vulkan udev elogind -systemd fontconfig vorbis opus vdpau bluetooth" package.use/vlc 214:# required by media-libs/mesa-22.1.7::gentoo[vdpau] 218:x11-libs/libvdpau abi_x86_32 dri
12:34
i have this
12:34
no vaapi in sight xd
Avatar
Ok you have vdpau, nvidia doesn't support vaapi anyway
12:35
There used to be a weird stub driver that redirected vaapi requests to vdpau but it was a buggy mess so every distro removed it
Avatar
Core mpv functionality can be extended with Lua or JavaScript scripts or C plugins.
12:35
lol js but no rust
Avatar
Avatar
heinrich5991
do you like xmpp?
Not particularly. I don't mind the wire protocol, but the homeserver thing is a little weird still, atleast in my mind
Avatar
hmm, that's kinda what makes email good though
Avatar
i need to remember why i have qt deps in gentoo
Avatar
I like a little federation
Avatar
i wonder what uses it
Avatar
vlc?
Avatar
oh true
12:36
vlc does
Avatar
Avatar
Learath2
Not particularly. I don't mind the wire protocol, but the homeserver thing is a little weird still, atleast in my mind
Jupstar βœͺ 2023-04-25 12:36:50Z
I only use it BCS home server actually xdd
Avatar
Avatar
Ryozuki
i wonder what uses it
if you have equery you can do equery d <package> to find out what depends on it
12:41
equery poggers
Avatar
equery d dev-qt/qtcore πŸ˜›
Avatar
Those ones with the pink qt5 thing mean it's only dependent if the qt5 useflag is enabled
Avatar
ok i added nvenc and vdpau
12:43
also libcaca
12:43
funny name
12:43
caca = shit in spanish
Avatar
Now when you do --hwdec in mpv what happens?
Avatar
For me it was still only decoding on gpu but then copying back to the cpu
Avatar
Using hardware decoding (nvdec). AO: [pulse] 44100Hz stereo 2ch float VO: [gpu] 1920x1080 cuda[nv12] AV: 00:01:54 / 00:49:25 (4%) A-V: 0.000
Avatar
Okay, seems it's not copying back for you
Avatar
how to make it default
Avatar
mpv.conf
Avatar
ye but what option xD
Avatar
hwdec=auto
12:46
you can copy the example config from /usr/share/doc/mpv...
Avatar
you can usually just copy the options you set on the cli one to one
Avatar
Avatar
arch1t3cht
you can usually just copy the options you set on the cli one to one
so just hwdec?
Avatar
auto worked
12:48
does mpv display it always at max quality or whathever
12:48
or do i need to config it too
Avatar
wdym max quality
Avatar
profile=gpu-hq
Avatar
You can do profile=gpu-hq it'll set the scaler and a couple other things
Avatar
if you use profile=gpu-hq then disable deband
12:49
deband just makes existing banding worse more often than not
Avatar
ok looking good
Avatar
i have a nerdy anime setup now too
Avatar
You can also mess around with the scaler afterwards, I think I heard ewa_lanczossharp is better if you have a beastgpu
12:52
It's actually quite impressive how configurable mpv is, they support so many things, you can change like everything
Avatar
the only missing thing is someday to leave pulseaudio and use pipewire
Avatar
Avatar
Ryozuki
the only missing thing is someday to leave pulseaudio and use pipewire
I did it on both my machines, it's actually trivial to switch
12:53
took me 20 mins max
12:53
ill do it after the work metting i have in 10 mins xd
12:53
meeting*
Avatar
and mpv is a native pipewire client, so it doesn't rely on the pulseaudio plugin and you get nice nodes in the graph πŸ˜„
Avatar
I was listening to a lecture with bad audio, ran it through an AI denoiser node and an EQ to cut out a buzz
Avatar
are we a native pipewire client
12:54
ddnet
Avatar
doubt it, we use SDL and I don't think they do native pipewire yet
Avatar
While SDL2-enabled games/applications can already work on PipeWire-based systems like the forthcoming Fedora Workstation 34 thanks to the PulseAudio compatibility layer, the SDL2 library has merged initial support for interfacing with PipeWire.
Avatar
what is native pipewire?
12:59
I thought pipewire only offered jack/pulseaudo APIs?
Avatar
pipewire offered a pulseaudio and jack api through plugins
13:00
it has an api of it's own that is pretty easy to translate to, which is what the plugins do iirc
Avatar
Jupstar βœͺ 2023-04-25 13:05:15Z
And in the end it is all alsa? Xd
Avatar
alsa is both the name of the kernel API and the name of a library
13:05
it's all alsa the kernel API, but not alsa the library
13:05
AFAIK
Avatar
Jupstar βœͺ 2023-04-25 13:05:56Z
Ok
Avatar
hm, I don't remember if pulseaudio and pipewire rely on libalsa
Avatar
I thought that no
13:07
pulseaudio depends on alsa-lib on archlinux
13:07
pipewire doesn't
Avatar
Jupstar βœͺ 2023-04-25 13:07:16Z
I just want obs to finally support audio per application. Shouldn't it be easy to implement with pipewire
13:07
And webrtc too
Avatar
should also be doable with pulseaudio
13:08
I remember doign that
Avatar
Jupstar βœͺ 2023-04-25 13:09:01Z
Mh k. Will later look
Avatar
hm, in gentoo both pipewire and pulseaudio depend on alsa-lib
13:09
even with the alsa plugin disabled
Avatar
Avatar
Jupstar βœͺ
I just want obs to finally support audio per application. Shouldn't it be easy to implement with pipewire
should be pretty trivial if obs is a native pipewire client, it just needs to create a sink and get the stream from the application
Avatar
Avatar
Learath2
should be pretty trivial if obs is a native pipewire client, it just needs to create a sink and get the stream from the application
Jupstar βœͺ 2023-04-25 13:11:55Z
Yeah probably it already works. Maybe more hidden. On windows u have window audio source and select window
Avatar
You can probably already just wire it by hand in qpwgraph or using the pw-cli
Avatar
Jupstar βœͺ 2023-04-25 13:15:12Z
Yep
13:15
I have a dummy source for that rn
13:15
But easier in obs directly
Avatar
Avatar
Jupstar βœͺ
I just want obs to finally support audio per application. Shouldn't it be easy to implement with pipewire
this so much
13:34
imagine being able to watch hentai while streaming
13:34
(joke xd)
13:34
on windows u need a shady program for split desktop adudio
Avatar
Avatar
Learath2
You can probably already just wire it by hand in qpwgraph or using the pw-cli
i need to learn this stuff
13:35
@Learath2 do u have a tldr on migrating
13:35
my meeting is over so i can mess with my audio now
13:36
found this
Avatar
Avatar
Ryozuki
i need to learn this stuff
Best part is that you really dont need to learn anything if you dont want to, the out of the box experience is the same as pulseaudio
Avatar
I used this and the pipewire page on the gentoo wiki
13:40
One problem I had was that audio was low out of the box, but I just had to set the ALSA volume to 100%
Avatar
pavucontrol will work?
13:40
its a nice tool xd
13:41
or whats the pipewire alt
Avatar
pavucontrol does still work
13:41
pulseaudio plugin is very very complete
13:41
does firefox has native pipewire
13:42
❯ rg pulseaudio make.conf 21:USE="X -wayland lm-sensors contrib mount alsa pulseaudio xinerama opengl vulkan udev elogind -systemd fontconfig vorbis opus vdpau bluetooth" package.use/00cpu-flags 2:# required by media-sound/pulseaudio-daemon-16.1::gentoo[alsa,alsa-plugin] 4:# required by media-sound/pulseaudio-16.1::gentoo 5:# required by www-client/firefox-bin-105.0.3::gentoo[pulseaudio] 7:>=media-plugins/alsa-plugins-1.2.7.1 pulseaudio
Avatar
III think they still go through the pulseaudio plugin
13:44
firefox is extremely slow when adopting stuff like this
13:44
They still haven't started using vdpau because they were fighting about whether they should wait for vulkan video or not for half a decade
13:45
ah there is also something thats been bugging me but unrelated
13:45
i dont like login display managers
13:46
but i didnt know how to get the bus or udev right
13:46
i have xdm without anything
13:46
so when i login in the tty it works but it always says a warning xd
13:46
i wonder how to get the logs
13:46
i have XDM
13:46
but wanna get rid of it
13:47
startx logs
Avatar
idk what you mean, I never used a dm so it certainly is possible
Avatar
tldr when setting up gentoo i guess i messed up a bit my config
Avatar
Are you having an issue starting a dbus session?
Avatar
and idk if im using xdm or not, i login through the tty tho xd
Avatar
Avatar
Learath2
Are you having an issue starting a dbus session?
i remember having a issue with it if not using a display manager
Avatar
You login through a tty, then how do you start x?
Avatar
i forgot
13:51
this is like programming
13:51
a setup u made ages age is not urs anymore
13:51
xd
13:51
i guess x gets started by XDM but it doesnt have any "frontend" configured?
Avatar
When you log in, does it automatically get you into a gui?
13:52
my .xinit looks like this
Avatar
So you do startx?
Avatar
xrdb -merge ~/.Xresources if [ -n "${GPG_AGENT_INFO}" ]; then kill $(echo ${GPG_AGENT_INFO} | cut -d':' -f 2) >/dev/null 2>&1 fi exec dbus-launch --exit-with-session ssh-agent i3
13:52
i dont run startx
13:52
i guess if i remove xdm
13:52
i should do that
13:53
ill remove it
Avatar
I wonder what even starts x for you, I thought display managers were started by the init system
13:53
rc-update shows it
13:54
display-manager | default
13:54
ah
Avatar
but you log in on a tty you said
13:54
i have this
13:54
but with xdm
13:54
but xdm is not there
13:55
so its a weird thing it does
13:55
probs
13:55
xd
13:55
ye
Avatar
do you maybe have an exec startx in your bashrc or bash_profile?
13:55
I remember gentoo suggesting that in a wiki page
Avatar
no i dont
13:55
i nver read that
13:55
so my dumb self thought, ok ill use a display manager to make startx auto
Avatar
I mean there is no harm to a dm πŸ˜„
Avatar
its bloat
13:56
i like my tty login
13:57
do i put exec startx
13:57
in bashrc or profile
13:57
oh wait
13:57
i have it in my profile
Avatar
Ah, that explains it
Avatar
what's the point in doing 'native' pipewire if it also supports the pulseaudio API?
Avatar
Avatar
Ryozuki
Click to see attachment πŸ–ΌοΈ
You aren't using XDM at all
Avatar
yeah im not xd
13:58
i disabled the display manager in rc-update
Avatar
Avatar
heinrich5991
what's the point in doing 'native' pipewire if it also supports the pulseaudio API?
Honestly, nothing much for most applications, there is some pipewire specific stuff exposed in the pipewire api, but mostly advanced stuff
Avatar
Avatar
Ryozuki
do i put exec startx
I've been using this for a long time if you are interested in taking a look πŸ˜‰ https://github.com/gotroyb127/dotfiles/blob/5d72589137d0218ae8990fe8e9185c02b62f70ce/.profile#L50
Avatar
ur not someones alt right?
14:00
ok ill check
Avatar
@Ryozuki don't forget to add gentoo-pipewire-launcher & to your i3 config
Avatar
@Learath2 do u have ur tmp in a tmpfs
14:00
i do
14:00
BASEDHALT
14:00
portage tmp too
14:01
just need 12gb ram for firefox tmp files
Avatar
Nope, I do sometimes mount a tmpfs there though
14:01
Maybe I should always have it on tmpfs
Avatar
it saves lots of writes
14:01
and good use of ram
14:02
otherwise i hardly reach 10gb
14:02
usage
Avatar
Avatar
Ryozuki
ur not someones alt right?
No, I'm not, I'm me ;). I've been silent generally.
14:03
It'd probably help if I got /nicked to zogtib.
Avatar
with or without the full stop?
Avatar
without
Avatar
not to be pedantic, but a alt saying "im me" is also correct
14:03
after all you are always u :p
14:04
(im joking anyways)
Avatar
That's right, but I'm not an alt.
Avatar
Avatar
zogtib
I've been using this for a long time if you are interested in taking a look πŸ˜‰ https://github.com/gotroyb127/dotfiles/blob/5d72589137d0218ae8990fe8e9185c02b62f70ce/.profile#L50
This is a cute idea, I'll steal it
Avatar
(oh and thanks for /nicking me)
14:05
i havent thought about goign full tty only
14:05
zen mode
Avatar
I don't have exec startx so I can stay in tty if I'd like
Avatar
Original Date Published: March 8, 2022 ![[62270d310fc0e771bbf3ea30_main_iou_imagemain_iouring.png]] This blog posts covers io_uring, a new Linux…
14:07
nice explanation of io_uring, too
Avatar
@Learath2 can u tell me ur use flags for pipe
14:08
and do i need alsa-plugins
Avatar
ddnet.org seems down
Avatar
media-video/pipewire sound-server extra I don't have anything else
Avatar
media-video/pipewire X dbus extra ffmpeg pipewire-alsa sound-server ssl v4l
Avatar
gstreamer might be fun to mess around with too if you want
Avatar
no pipewire-alsa ?
Avatar
Oh yeah, X dbus readline ssl from my USE too
Avatar
Avatar
Ryozuki
no pipewire-alsa ?
Nope
Avatar
pipewire-alsa Replace PulseAudio's ALSA plugin with PipeWire's plugin
Avatar
You can use it though if you like
14:11
I don't have any ALSA clients left so I didn't even think about it
Avatar
tbh im a bit confused with whats alsa and whatnot
14:11
xd
14:11
do i have alsa clients
Avatar
Yeah it is confusing, I think when we say "alsa client" we mean clients that use libalsa directly for their sound output
Avatar
Avatar
Ryozuki
do i have alsa clients
I guess there is no harm in enabling pipewire-alsa too just in case you do
14:12
No need for those to go through the pulseaudio plugin
Avatar
@Learath2 poke dm
14:16
[blocks B ] media-video/pipewire[sound-server(+)] ("media-video/pipewire[sound-server(+)]" is soft blocking media-sound/pulseaudio-daemon-16.1-r6) [blocks B ] media-sound/pulseaudio-daemon ("media-sound/pulseaudio-daemon" is soft blocking media-video/pipewire-0.3.67)
14:16
odd
14:16
❯ sudo emerge --deselect media-sound/pulseaudio-daemon
No matching atoms found in "world" favorites file...
14:16
i shouldnt have it xd
14:17
❯ equery d pulseaudio-daemon
  • These packages depend on pulseaudio-daemon:
media-libs/libpulse-16.1-r2 (media-sound/pulseaudio-daemon) media-sound/paprefs-1.2-r3 (media-sound/pulseaudio-daemon[glib]) media-sound/pulseaudio-16.1 (daemon ? >=media-sound/pulseaudio-daemon-16.1[bluetooth?,glib?,jack?,ofono-headset?])
14:17
i guess i need to remove those
14:19
@Learath2 do u have a global use flag with pulseaudio? or pipewire
14:19
i have alsa pulseaudio there
Avatar
Avatar
Ryozuki
@Learath2 do u have a global use flag with pulseaudio? or pipewire
Yeah, you need to keep the pulseaudio useflag, I also enabled pipewire so I can get native clients where supported
Avatar
Avatar
Ryozuki
i guess i need to remove those
did you set -sound-server on pulseaudio as suggested on the migration guide?
14:25
-daemon actually sorry
14:26
Yeah, that's why you have it, you didn't set -daemon
Avatar
i fixed it
14:29
i had to deselect a library
14:29
sudo emerge --deselect media-sound/paprefs
Removing media-sound/paprefs from "world" favorites file...
14:30
@Learath2 i found some unholy thing in my rc-update
14:30
systemd-tmpfiles-setup | boot systemd-tmpfiles-setup-dev | sysinit
Avatar
do u use udev btw?
Avatar
but you are supposed to have it πŸ˜„
14:30
added global pipewire
14:30
the only things that support it
14:30
sad world
14:31
also added the session thing
14:31
ill reboot and hope for the best, after obs finishes compiling
Avatar
Avatar
Ryozuki
do u use udev btw?
yeah, I've been meaning to migrate to eudev but didn't have time to mess around with it
14:32
udev breaking is more than a 20 minute issue to debug πŸ˜„
14:34
hello from the unbloated world
14:34
pipewire
14:34
it works
14:34
my audio was at 40 but i put it at 100
14:35
i control my audio from my bose speakers
14:35
gigachad
14:35
2023-04-25 16:35:37 I client/sound: sound init successful using audio driver 'pulseaudio'
14:35
ddnet says this tho
14:35
i guess ddnet being ddnet
Avatar
Avatar
Ryozuki
2023-04-25 16:35:37 I client/sound: sound init successful using audio driver 'pulseaudio'
it is possible our sdl2 is too old, maybe compile a new one?
14:36
i recompiled sdl2 with the flag but not ddnet
14:37
same
14:37
hmm
14:38
❯ mpv \[SubsPlease\]\ Vinland\ Saga\ S2\ -\ 12\ \(1080p\)\ \[CDAA6C02\].mkv (+) Video --vid=1 (*) (h264 1920x1080 23.976fps) (+) Audio --aid=1 --alang=jpn (*) (aac 2ch 44100Hz) (+) Subs --sid=1 --slang=eng (*) 'English subs' (ass) Using hardware decoding (nvdec). AO: [pipewire] 44100Hz stereo 2ch floatp VO: [gpu] 1920x1080 cuda[nv12] AV: 00:00:04 / 00:25:55 (0%) A-V: 0.000
14:38
hehe
14:38
i know it works thanks to mpv
Avatar
Ah apparently SDL2 uses pulseaudio if it's available always
14:40
Try SDL_AUDIODRIVER=pipewire ./DDNet
Avatar
2023-04-25 16:44:49 I client/sound: sound init successful using audio driver 'pipewire'
14:44
oh nice
14:45
should i export SDL_AUDIODRIVER=pipewire
14:45
i will do it
Avatar
i got my cgit mirror up again
15:29
im no longer affected by microsoft closing github
15:29
BASEDHALT
Avatar
don't hold your breath, sourceforge is still up
Avatar
Jupstar βœͺ 2023-04-25 15:34:26Z
if github would be shutdown today, i wonder if gitlab could even handle it at all xD
Avatar
They probably have good enough automation that they’ll scale without problem
15:35
Running more gitlab nodes isn’t too hard
Avatar
Jupstar βœͺ 2023-04-25 15:35:42Z
i wonder if gitlab is even that scalable
15:35
i mean how many users does gitlab have, they probs never tested it with like 20times the amount xD
Avatar
I think I remember some sharding in the code if needed
Avatar
Jupstar βœͺ 2023-04-25 15:36:07Z
or much more probably
Avatar
cgit interface is so much faster
15:36
than github
15:36
no js bloat
Avatar
Jupstar βœͺ 2023-04-25 15:37:48Z
but it also has basically no functionalty xd
15:37
so rewrite github in rust to compile it to wasm
15:38
and hope that browsers will do more wasm optimizations soon
Avatar
Avatar
Jupstar βœͺ
if github would be shutdown today, i wonder if gitlab could even handle it at all xD
that's the best problem to have, everyone would be pumped to work on making it scale
Avatar
Jupstar βœͺ 2023-04-25 15:40:31Z
^^ true
Avatar
this reminded me of this
Avatar
Jupstar βœͺ 2023-04-25 15:40:44Z
troll
15:55
(rust is mentioned there @Ryozuki :p )
Avatar
oh nice
Avatar
Avatar
Ryozuki
❯ mpv \[SubsPlease\]\ Vinland\ Saga\ S2\ -\ 12\ \(1080p\)\ \[CDAA6C02\].mkv (+) Video --vid=1 (*) (h264 1920x1080 23.976fps) (+) Audio --aid=1 --alang=jpn (*) (aac 2ch 44100Hz) (+) Subs --sid=1 --slang=eng (*) 'English subs' (ass) Using hardware decoding (nvdec). AO: [pipewire] 44100Hz stereo 2ch floatp VO: [gpu] 1920x1080 cuda[nv12] AV: 00:00:04 / 00:25:55 (0%) A-V: 0.000
what if ur file is only named ()]()()()()()[]()[)]([].mkv (edited)
Avatar
wtf bors big spammer
Avatar
amazing PR @Robyt3
16:09
gotta try out the IME again ^^
Avatar
The newest version of Tater-Client crash if you try to load a map in map editor. Someone got this error too or was this a one of the last changes and i miss merged it? I dont remember to merge something in Editor just (No Changes so far in the map editor, so no merge) Can someone gimme a quick tip if this problem is known before i try to search the whole day xD
Avatar
Avatar
Daniel
The newest version of Tater-Client crash if you try to load a map in map editor. Someone got this error too or was this a one of the last changes and i miss merged it? I dont remember to merge something in Editor just (No Changes so far in the map editor, so no merge) Can someone gimme a quick tip if this problem is known before i try to search the whole day xD
Jupstar βœͺ 2023-04-25 16:41:47Z
any specific map? does ddnet not crash?
Avatar
The exception implies that a file has no modified date or it could not be determined
Avatar
nah you cant get to the map select.. if you click on file-> load ... then it crashes the person who told me this said that the newest ddnet version dont crash
Avatar
Since we want to upgrade SDL version. SDL fixed the bug on Windows that releasing the mouse while tabbing out directly refocuses the window, which broke desktop fullscreen (and maybe windowed fullscreen)

Checklist

  • [ ] 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 poss...
Avatar
Avatar
Robyt3
The exception implies that a file has no modified date or it could not be determined
yea i understand the error message but i dont want to some new handling into system.cpp or other functions what is extra changes to the main branch
Avatar
I don't really understand this exception though. Here is the only result on the internet for it: https://stackoverflow.com/questions/71345845/assertion-timeptr-nullptr
I am working on logging in a DLL but getting the date and time causes an assertion. The function is supposed to return a time like 3/3/2022 8:00:00. But it causes an assertion, and a warning "...
16:47
Does Tater-Client have the same str_timestamp_ex implementation as ddnet?
Avatar
since tater-client don't need to change it this should be the same
Avatar
chillerdragon BOT 2023-04-25 17:42:53Z
weechat is trash for Matrix but best for irc. I use gomuks for Matrix it’s quite solid (@Jupstar βœͺ)
Chiller cries in pain. He hates element BCS Js bloat XD. Btw chiller, did u ever try a terminal client?
Avatar
Avatar
chillerdragon
weechat is trash for Matrix but best for irc. I use gomuks for Matrix it’s quite solid (@Jupstar βœͺ)
Jupstar βœͺ 2023-04-25 17:52:59Z
nheko is fast, but not terminal based. and kinda looks like telegram xD
Avatar
chillerdragon BOT 2023-04-25 17:54:07Z
Matrix is bad eitherway
Avatar
Jupstar βœͺ BOT 2023-04-25 17:54:10Z
send from matrix
Avatar
chillerdragon BOT 2023-04-25 17:54:42Z
The protocol is just bloat. And the main china controlled spynet matrix.org instance is slow af. And the federation is just annoying
17:55
Okay gotta admit on iOS Matrix crap beats irc clients
send from matrix
Avatar
Jupstar βœͺ BOT 2023-04-25 17:55:58Z
so what else can we use
Avatar
chillerdragon BOT 2023-04-25 17:56:08Z
Which is also fair since real OGs don’t own phones
Avatar
Jupstar βœͺ BOT 2023-04-25 17:56:12Z
i need smth that is as good as discord, and matrix is the only thing close
Avatar
chillerdragon BOT 2023-04-25 17:56:23Z
irc all the way
17:56
Better than Matrix and discord combined
Avatar
Jupstar βœͺ BOT 2023-04-25 17:56:38Z
πŸ€ͺ
Avatar
chillerdragon BOT 2023-04-25 18:06:36Z
There used to be fosscord which apparently rebranded and took down their website that made it look like a Fortune 500 company https://github.com/spacebarchat/spacebarchat
i need smth that is as good as discord, and matrix is the only thing close
Avatar
Jupstar βœͺ BOT 2023-04-25 18:07:41Z
xd
18:07
good to know tho
Avatar
chillerdragon BOT 2023-04-25 18:08:48Z
Idk how good it is. Honestly their good design and marketing scared me away.
18:09
For me every average corp marketing speech and modern front end seems like a scam site to me.
18:10
If you have a good product why would you need to advertise it. If your product is a scam or can’t speak for it self you need to rely on shiny ads banners and designs
Avatar
The European Commission paid €360,000 (about $428,000) for a study on how piracy impacts the sales of copyrighted music, books, video games, and movies. But the EU never shared the reportβ€”possibly because it determined that there is no evidence that piracy is a major problem.
18:23
kekw
18:23
The EU Suppressed a 300-Page Study That Found Piracy Doesn’t Harm Sales
18:43
future
18:43
or past
18:44
Electrical current modulation in wood electrochemical transistor
18:44
wood transistors
18:44
Exported 633 message(s)