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-12 00:00:00Z and 2023-04-13 00:00:00Z
Avatar
e7a079c Add 10 € donation by Oxyder_ - def-
Avatar
Since the last update, it's not possible to replace an image, nor to readd it. The only way is to delete the image and to readd it manually.
Avatar
Avatar
Anime.pdf
pay 1$ for mentioning that thing (edited)
Avatar
Has anyone ever come across a Discord embed that contains a functional video?
Avatar
What is a functional video?
08:53
A video that works?
Avatar
Yes, im trying to upload a video and embed it, but for some reason it doesn't want to load.
Avatar
It looks like it tries tho
08:55
Have u tried to press F5 xd/ browser
Avatar
Yes, maybe it's because the media lacks some META informations so it doesn't embed properly :/
Avatar
Avatar
Jupstar ✪
It looks like it tries tho
it tries yeah, but turns into the poop emoji image thing after awhile 😄
Avatar
Any error in Javascript console? Maybe u can try a different video? (edited)
Avatar
Avatar
murpi
Yes, im trying to upload a video and embed it, but for some reason it doesn't want to load.
yoo is that a new report system?
justatest 1
Avatar
Avatar
Jupstar ✪
Any error in Javascript console? Maybe u can try a different video? (edited)
I've tried multiple videos, different types but all seem to fail. Meh.
Avatar
Rip and embed by url not an option?
Avatar
links should work, i'll give it a try
Avatar
some video codecs dont work in embed
09:12
H.264 should work
Avatar
If he used a video rendered by client it should be h264
Avatar
On new Beta. if right click on a placed green quad dot u can only change Pos. Env or Col. Env once if u deselect it u cant select it again
Avatar
d9a3678 Add 100 € donation by Teetanic - def-
rplace 2
BASEDHALT 1
Avatar
make ddnet a non profit so donations are tax deductible xd
15:39
HETZNER INTRODUCES ARM64-BASED CLOUD SERVERS
15:39
@deen ddnet on arm?
Avatar
I thought about that
15:40
but we even had problems with physics differences on x86 servers, so arm would be even worse probably
Avatar
and if I make the main server arm, then have to cross-compile which is annoying
15:40
and also lots of effort to set it up yet again
15:42
and I don't want to know what kind of bugs mariadb or other software have which don't show up on x86-64 because it makes concurrency easier
15:42
Avatar
is arm weakly ordered?
Avatar
nice link
15:52
i think i seen it before
15:56
Play with Deck of Cards, source available! Pure vanilla JS – no dependencies.
Avatar
omg epic, but sadly more expensive than a vps on other hoster
16:20
else i'd switch
Avatar
starting to render weapons ^^
Avatar
ez
Avatar
i wanna make my own client with like, OTT graphic related things
16:22
hard to explain rn
Avatar
hrmpf when did I break the tees again
16:29
ah I remember
Avatar
so this is to spectate tees on a web browser?
16:30
sorry im dumb
Avatar
hm mainly its just my hobby project where I try to replicate the rendering
Avatar
cursed tees ghosts
Avatar
Avatar
Voxel
sorry im dumb
how is that dumb, could be
16:32
cant wait for webgpu to stabilize ❤️
Avatar
Avatar
Voxel
so this is to spectate tees on a web browser?
but yeah that should be very easily possible, dunno about performance ^^
Avatar
Avatar
k2d222
cant wait for webgpu to stabilize ❤️
I think chrome announced it for second quarter this year o.o
16:33
did you try your twgpu on experimetal chrome?
Avatar
then ill try for you XD
heartw 1
Avatar
@Patiga is this server demo rendering?
Avatar
atm my day job is doing gpgpu on the web (with webgl1) I cant fucking wait for webgpu
Avatar
Avatar
default
@Patiga is this server demo rendering?
this is a normal client demo
Avatar
boring
16:35
but if it helps #reports
Avatar
Avatar
k2d222
atm my day job is doing gpgpu on the web (with webgl1) I cant fucking wait for webgpu
oh interesting, what kind work do you do with webgl?
Avatar
Avatar
default
boring
you bring quite a depressing mood here ^^. what you see is a client demo, the graphic interface just takes a snapshot, so you could input all the other storage formats as well
Avatar
is a server demo even different from a client demo?
Avatar
I don't think so
16:38
maybe default0 means teehistorian
Avatar
Avatar
k2d222
cant wait for webgpu to stabilize ❤️
if webgpu works, try to benchmark against webgl2
16:38
and also against ddnet client with webgl2
16:39
👍 1
Avatar
Avatar
Jupstar ✪
if webgpu works, try to benchmark against webgl2
what? is there a webgl2 backend for wgpu?
Avatar
mh ah yeah vsync is always enabled for no apparent reason, maybe it was a SDL bug 😄
Avatar
then why am i still not using twgpu then
Avatar
that suprises u more than webgpu backend? XD
16:42
ok its their main goal apparently
16:42
so maybe indeed not surprising xD
Avatar
Avatar
Patiga
@deen hey, could you please allow cross-origin for https://ddnet.tw/testmaps/ and https://ddnet.tw/mappreview/ for my site https://mapview.patiga.eu ? :)
@deen could you please enable this again? :)
Avatar
can u compile it with webgpu?
Avatar
Avatar
Jupstar ✪
mh ah yeah vsync is always enabled for no apparent reason, maybe it was a SDL bug 😄
hmmh i had this very bug using wasm/sdl2 cant remember the workaround but i can look it up if u want
Avatar
or is it some flag
Avatar
Avatar
k2d222
hmmh i had this very bug using wasm/sdl2 cant remember the workaround but i can look it up if u want
tbh i dunno if the client still compiles to wasm with the rust bridge
16:43
never tested it
16:45
"When running in a web browser (by compilation to WebAssembly) without the "webgl" feature enabled, wgpu relies on the browser's own WebGPU implementation. WGSL shaders are simply passed through to the browser, so that determines which WGSL features you can use."
16:45
so i assume simply remove the webgl feature
Avatar
Avatar
Jupstar ✪
can u compile it with webgpu?
Avatar
gitlab down, sad
Avatar
weird, works for me
Avatar
https://aliveclan.de/ddnettest/ is that twgpu or smth else?
Avatar
its ddnet
16:49
literally
16:49
i thought why the effort to make the ui match XD
16:50
it runs pretty smoothly
Avatar
i just remove some data and added something that emulates a command parameter to work with the javascript input
🤌 1
Avatar
Jupstar ✪ BOT 2023-04-12 16:53:37Z
ok the loadmap is a bit customized, it wanted to use it for official ddnet, but webgl2 support seems to non existing on macos lel+
16:54
i dunno why but my internet seems broken on many sites rn xD discord also doesnt work anymore
Avatar
yes its a bummer, they say they support but its full of garbage
16:56
is there a way to load other maps on https://mapview.patiga.eu/ ? @Patiga (edited)
Avatar
@k2d222 https://mapview.patiga.eu/?map=dm2 the map parameter for maps that are stored in the server behind the site (I think the teeworlds maps rn), url https://mapview.patiga.eu/?url=https://heinrich5991.de/teeworlds/maps/maps/Animations_c2aa2208a9f27fcfd8349f34cf1633c038c17bdedbc225c1cdd14d4ecc19c3c0.map needs cross-origin enabled, and ddnet and ddnet-testing also exists in theory but cross-origin is disabled there rn
17:02
the map renderer doesn't have mipmaps yet
17:03
and also no parallax-zoom :p
Avatar
cant help but notice its a bit laggy 😅
Avatar
yes, for me too
17:06
on chrome its already better
Avatar
wow yes, so much difference
Avatar
Jupstar ✪ BOT 2023-04-12 17:07:40Z
why firefox is weird af
17:08
when i zoom out one step more(in ddnet rendering) for some reason it drops from like 240fps to 15fps xD
Avatar
otherwise, one of: tilemap rendering method is just less performent, gl2 backend is badly optimized (I think jupstar looked into the commands run in the background once and found a lot of redundant commands), wgpu cpu-intensive checks
Avatar
always had a couple fps more on chrome on wasm and webgl, but here its more than usual
17:09
btw how do you mipmap the tiles? without the texture bleeds in the texture atlas?
Avatar
2d texture array
17:09
perfect fit :D
17:09
(I don't do that yet tho :d)
Avatar
1 layer per tile?
17:10
256 layers, actually the minimum of layers supported everywhere according to wgpu limits
Avatar
I do custom mipmap levels for tiles layer on my mc clone, that works well but hell to implement in js on the fly
17:11
I have a gimp script to do that
Avatar
Avatar
k2d222
I do custom mipmap levels for tiles layer on my mc clone, that works well but hell to implement in js on the fly
dont u just need to make multiple textures and upload them all without generating mipmaps and swap them on the CPU then
17:15
if its 2d u can estimate what mipmap would be used
Avatar
oh, I see u mean based on zoom level I swap the texture?
Avatar
if u even have a concept like zoom but yeah depending on resolution and zoom
Avatar
how is that better than having all the mip levels attached to the texture and letting gl do mipmap lookup?
17:18
my issue is how do I generate the mip levels
Avatar
i assumed u faced texture bleeding
17:18
and in webgl1 u might not have 2d array textures or sampler methods in the shader
Avatar
Avatar
k2d222
my issue is how do I generate the mip levels
well glGenerateMipMaps or a texture flag is it for old OpenGL at least
Avatar
Jupstar ✪ BOT 2023-04-12 17:19:49Z
else search a resize js library and always half the size
Avatar
else search a resize js library and always half the size
Avatar
my problem is, glGenMipmaps generates mipmaps by averaging 4 pixels, but for a texture atlas, that doesnt work bcs it will mix with the neighboring tile on the edges, thats what I meant by texture bleed
17:21
what u need is to avg 4 pixels but taking into account tile borders
17:21
so custom mipmaping
Avatar
yep but even then it will make the rendering quite inaccurate
17:22
for a 512x512 texture u have completly different texel offsets than 1024x1024
17:22
1/1024 vs 1/512
17:22
so u basically face the opposite of bleeding still
17:23
with your way of rendering
17:23
generally u cannot get the pixel perfect rendering without 2d array textures tho
17:23
the edge texels are always cut by exactly half a pixel
Avatar
I dont get it 🥹
Avatar
ok wait tbf it depends on if u are using linear interpolation for sampling
17:25
are you doing it? 😄
Avatar
oh yea now I think I see what u mean
17:25
I cant do the double interpolation thingy
17:26
gl_nearest_mipmap_linear
17:26
but gl_linear_mipmap_linear would not work is that it?
Avatar
that too but gl_linear and gl_linear_mipmap_linear and gl_linear_mipmap_nearest wont work either
17:27
basically only with gl_nearest it might work
Avatar
right I get it now, still better than nearest
Avatar
i still dont get the map-inspect to build at all xD
Avatar
have you tried the steps from the readme? ^^
Avatar
wasm ah yeah
17:41
cargo is my second package manager xd
Avatar
when first
Avatar
zsh: segmentation fault (core dumped) wasm-pack build --target web rust and segmentation fault
17:41
🤦‍♂️
Avatar
Avatar
k2d222
when first
yeah rust only os soon™️
Avatar
nah bad design
Avatar
then, probably not soon XD
Avatar
Avatar
Jupstar ✪
zsh: segmentation fault (core dumped) wasm-pack build --target web rust and segmentation fault
wat o.o
Avatar
mh weird, 0.10.3 also crashes
17:46
let me try rust stable
17:47
mh no chance, rip
Avatar
bro how
Avatar
works for me
Avatar
how does wasm-pack manage to die
Avatar
i run it in twgpu and the other dir both dont work
17:48
where do i need to run it xd
Avatar
inside of map-inspect-web
Avatar
yeah weird that it crashes for me 😄
Avatar
but even outside it shouldn't crash
Error: failed to parse manifest: /home/patiga/git/twgpu/Cargo.toml Caused by: missing field package
Avatar
maybe my system is broken 😄
Avatar
can you run the command at all without crashing, like version or smth
17:49
-V, --help, does the command run at all?
Avatar
@Jupstar ✪ try cargo install wasm-pack --no-default-features
Avatar
ah nice thx
17:57
bro too hard for me xD [INFO]: found wasm-opt at "/home/jupeyy/.cargo/bin/wasm-opt" Error: /home/jupeyy/.cargo/bin/bin/wasm-opt binary does not exist
17:57
why does it try to find it in /bin/bin now xD
17:58
after it found it already xD
Avatar
lmao /bin/bin/ I can't
17:58
have dinner now tho, gl ^^
Avatar
good one, ty xd
Avatar
@Jupstar ✪ did you manage to solve it? 😅
Avatar
Avatar
Patiga
@Jupstar ✪ did you manage to solve it? 😅
yes, but it doesnt run, adapter cannot be created, maybe a newer version of wgpu fixes problems with webgpu?
Avatar
twgpu is currently on the latest major version of wgpu, so that shouldn't be the issue
Avatar
but yeah, seems like some incompatibility issue
Avatar
chatgpt google for devs
19:11
Avatar
Avatar
Ryozuki
Click to see attachment 🖼️
hm interesting website, that is the exact example from the readme/docs
Avatar
Avatar
Ryozuki
Click to see attachment 🖼️
"Easy" API
Avatar
Avatar
Voxel
"Easy" API
its rly called like this
19:24
on the C side too
19:24
actually
19:24
look at ddnet code
19:24
u will find itg
Avatar
wait wtf i thought that was sarcasm
Avatar
the easy api is meant to be ez to use
19:24
cuz curl has million options
Avatar
btw curl is everywhere
19:24
under ur bed too
Avatar
i curl under my blanket when i go to sleep does that count
Avatar
its comfy,
Avatar
i'm impressed how good lapce became in such a small time frame, if it has debugger support it could already replace vscode for rust development the performance is superb
Avatar
Avatar
Jupstar ✪
i'm impressed how good lapce became in such a small time frame, if it has debugger support it could already replace vscode for rust development the performance is superb
lapce you say 👀
Avatar
Avatar
Jupstar ✪
i'm impressed how good lapce became in such a small time frame, if it has debugger support it could already replace vscode for rust development the performance is superb
Q: Can lapce invoke building of a project?
Avatar
i guess not yet
Avatar
yeah, I couldn't find it. Snappy however
Avatar
i hope they get it done this year, would be nice to have a bit of challenge for vscode 😄
Avatar
I've tried to like vscode... can't....
Avatar
i like it tbh 😄 i can even use it in a browser and write code on my vm
Avatar
For me it always feels sluggish
Avatar
but sometimes it gets slow already yeah
20:46
on my desktop its ok, bcs good hardware
20:47
but laptop is already little struggle
Avatar
But it feels very wrong that you have shit-ton of good hardware, and Turbo Pascal back in the 90s was snappier
Avatar
xD
20:49
when it comes to electron and javascript in general, i'd still say vscode is one of a kind. most js stuff sucks so hard, vscode is pretty nice compared to it
Avatar
I rather not touch JS even with a 10 foot pole
Avatar
i feel like the discord app on my phone is slower than opening it in the browser ^^
Avatar
WebTech©
20:51
As you might have guessed, I'm not too fond of some of the trends in software development 🙂
Avatar
u just need for daily dose of ryozuki news in this channel then you are always up to date if there ever is a language that can replace rust, ryozuki will let me know
20:55
he's the news boss
f3 1
Avatar
Is he even a contributer? BAH 😄
Avatar
d1e4eb3 A Weapon Finals II - ddnet-maps c98bfd1 A Semang 3 - ddnet-maps 5afdf01 A IWannaBeatTheMap - ddnet-maps dd008b7 M The Uns - ddnet-maps b52af3e A Telephone 3 - ddnet-maps 13d961a A Volleyball, M Telephone 3 - ddnet-maps
Avatar
Of ddnet? Then yes^^
Avatar
I ment of rust
Avatar
wassup matricks !
Avatar
Avatar
ReiTW
wassup matricks !
Not much, about to hit the hey
Exported 249 message(s)