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 2022-03-11 00:00:00Z and 2022-03-12 00:00:00Z
Avatar
chillerdragon BOT 2022-03-11 06:25:10Z
c++ isn’t too different from most of the web languages. The code reads mostly the same
Avatar
thats simply not true
06:57
but not an excuse being "web dev" to not learn more
Avatar
So i have a huge problem and i cant find why. When i move my mouse my fps drops on a HUGE amount. Like from 3000 to under 100 Then i updated my graphics driver now i dont even get 1k fps anymore and fps still drops when i move my mouse (edited)
Avatar
dont move ur mouse then troll
greenthing 2
Avatar
@HappyFray does trying fullscreen help
07:35
if u play on borderless
07:35
i dont know what could cause this tho
07:35
maybe @Jupstar ✪ knows
Avatar
i play on borderless but doesnt help sadly :c
Avatar
@Jupstar ✪ nice pfp btw
07:36
@HappyFray try an older version
07:36
or nightly
Avatar
i play on nightly.
07:36
try the latest stable
07:37
maybe its a bug in nightly
07:37
what does gfx_opengl_major say btw
07:37
on nightly
Avatar
same on latest release on latest gfx_opengl_major = 1 on nightly same (edited)
07:40
is ur pc rly old?
Avatar
no it just happened yesterday like i played and it started to happen
Avatar
try setting
07:40
gfx_opengl_major 3
Avatar
only in ddnet or in other games too
Avatar
Avatar
Ryozuki
gfx_opengl_major 3
didnt fixed
Avatar
but did u retart
Avatar
Avatar
louis
only in ddnet or in other games too
uhm good question i try
Avatar
restart
Avatar
Avatar
Ryozuki
restart
a lot.
Avatar
with the new setting
07:41
ok
07:41
im out of ideas
Avatar
Avatar
louis
only in ddnet or in other games too
only ddnet i tried at the new game aperture desk job and on minecraft
07:50
thats how it looks like
07:50
i capped at 300 fps that you can see better.
Avatar
[quakenet] ChillerDragon BOT 2022-03-11 09:06:30Z
ryo you mentioned once that you use a youtube-dl fork. Why is that?
Avatar
yt-dlp is better
09:10
I think the backstory was that youtube-dl development slowed down and PRs were not merged as much
09:10
I had some videos that didn't work in youtube-dl, so that's why I switched
09:56
A youtube-dl fork with additional features and fixes - GitHub - yt-dlp/yt-dlp: A youtube-dl fork with additional features and fixes
Avatar
chillerdragon BOT 2022-03-11 09:57:25Z
Hm always sad to see proects split up. But I guess not merging prs is an issue.
10:57
we can use this to begin ddnet migration to rust
10:57
monkalaugh
Avatar
unexploredtest BOT 2022-03-11 11:02:35Z
Wait, DDNet is being rewritten in Rust?
Avatar
no im joking
11:17
@Patiga i made a pr to ur twmap tool
11:18
its mainly to update its deps and fix some deprecated stuff
11:18
i recommend u use https://crates.io/crates/cargo-edit in the future
11:18
makes it easier to keep track
Avatar
my tool that parses the http masters showed this lmao
11:26
poop emoji
Avatar
Avatar
Ryozuki
@Patiga i made a pr to ur twmap tool
merged, thanks!
Avatar
Because my changes have some effects on the display and thus people who like it as it was could bother, I have described my changes in detail here. Until now it was the case that players who are in /spec (while sv_pausable is activated) or the own active player who is in /pause or /spec are in the Spectators team. With this change this is no longer the case. I took the opportunity to make a few adjustments in the display logic. On the server side nothing had to be adjusted, becaus...
Avatar
i have a qol suggestion what about showing teams in server browser?
Avatar
@Patiga does twmap allow creating a new map?
13:05
as in starting from nothing
13:06
i want to try to learn some maze gen algorithms with it xd
13:07
i guess creating a TwMap struct from scratch
13:07
i should have looked more
13:07
found it
13:07
xd
13:14
epic
13:15
if ur using rust and want even better error reporting i recommend https://docs.rs/eyre/latest/eyre/
13:19
@Patiga i know this lib is probs was not initially meant for this but here is a nitpick:
13:20
this assumes there is always a physics group
13:20
and it shouldnt unwrap the result
13:20
its not rusty feelsbadman
13:20
(i know i need to add a physics group)
Avatar
many of the functions on the map require that the map is 'valid'. this function is really small tho, feel free to do a merge request
Avatar
but the library should then report an error when the map is invalid no?
13:23
i see you have thiserror as a dep already
13:23
creating a enum for such common errors should be easy
13:24
i can try to do it
13:24
usually library code that contains lot of unwrap is seen as bad
Avatar
I think this one can just return an option, no?
13:24
find() already returns a option
Avatar
panic!("Data is still compressed, reference unwrap unsuccessful")
13:26
these panics should also be errors
Avatar
why? that is basically the same as the unwrap methods on options
13:28
you should try to never panic in library
13:28
its not recoverable from the user side unless using catch_unwind
13:28
which no one should ever do
Avatar
you are using the library incorrectly if you get that panic
Avatar
you should not be able to use the library incorrectly
13:29
or even if u do it incorrectly u shouldnt get a panic
Avatar
but I don't see how a user of this library would want to match against that error. if that person matches that error then something is wrong
Avatar
rust is scary
Avatar
and he can find it out with an error
Avatar
and if that person would just not match the error and do unwrap on the error then its not much use
Avatar
@Patiga u just dont match that error
Avatar
its rly common to do main() -> Result
13:30
u can unwrap the error in main with ?
13:30
and it will report it (and end the app)
13:30
this is how its done
13:30
not with panics usually
13:30
so the user has way more control
Avatar
yo the function is literally called unwrap, you can match the enum yourself if you want
Avatar
this is what i did in my app, i unwraped at main an error i didnt want to match cuz its unrecoverable for me
Avatar
same as with option, no?
Avatar
but that doesnt mean a panic should be there
Avatar
why not?
13:32
its an unwrap method, the programmer is at fault if used incorrectly
13:32
well maybe for that method yes i guess
👍 1
13:32
still i dont like that design
Avatar
you could write a get method that returns an option or smth, but returning an option/error on an unwrap method seems silly to me
Avatar
@Patiga since this struct has 2 members that are not visible outside its impossible to create them from an external crate sadly
13:47
error: cannot construct twmap::GameTile with struct literal syntax due to inaccessible fields
13:50
(you can keep those private by providing and alt way to create this struct e.g a new() methid
13:52
Im sry if im annoying :feelsbadman:
13:52
Damn mobile doest render the emoji
Avatar
Avatar
Ryozuki
(you can keep those private by providing and alt way to create this struct e.g a new() methid
you could try the GameTile::new function ^^
14:04
My autocomplete didnt show it
14:04
Ill check later
Avatar
Avatar
Ryozuki
im out of ideas
no, you didnt say install arch yet
Avatar
Avatar
HappyFray
no it just happened yesterday like i played and it started to happen
tried clean config? tried fullscreen? laptop? does f1 purple text mention the GPU you want to actually use? pc on high performance? tried downgrade the GPU driver(if there was an update)?
Avatar
Avatar
Jupstar ✪
tried clean config? tried fullscreen? laptop? does f1 purple text mention the GPU you want to actually use? pc on high performance? tried downgrade the GPU driver(if there was an update)?
ok like i played and it happened out of nowhere. I tried every of that except downgrade. I tried upgrade driver actually. instead of downgrade Im not playing on laptop and i dont have a bad pc
Avatar
when you restarted, did you shutdown and turned on again or actual restart?
16:25
in windows there is a difference in: right click windows icon restart and open over windows icon restart
16:25
the first also cleans the windows caches
16:26
Avatar
@HappyFray make sure there are no other windows open in the background to prevent desktop system trying to grab mouse to the hidden windows
16:43
for instance, i know discord window makes me lag if it stays open
Avatar
Avatar
Jupstar ✪
in windows there is a difference in: right click windows icon restart and open over windows icon restart
both dont works and i also restarted with cmd shutdown /r
Avatar
Avatar
Chairn
@HappyFray make sure there are no other windows open in the background to prevent desktop system trying to grab mouse to the hidden windows
i already tried to kill every process except needed
Avatar
maybe you can try system restoration
Avatar
i guess thats the moment to install linux
Avatar
maybe xD
Avatar
no but srsly.. either you did smth or your hardware somehow degraded xd
Avatar
yeah, its possible that some part just broke out
Avatar
Avatar
Jupstar ✪
in windows there is a difference in: right click windows icon restart and open over windows icon restart
Does alt+F4 clean the caches ? (edited)
Avatar
mhh his disk was full, maybe demo recording caused it
Avatar
Avatar
nouaa
Does alt+F4 clean the caches ? (edited)
i dunno, i just read an article a few years ago that restart != restart xD
Avatar
Windows sux
16:50
😂
Avatar
When you click “Shut Down” on your Windows 10 PC, Windows doesn’t fully shut down. It hibernates the kernel, saving its state so it can boot faster. If you’re experiencing computer problems and need to reset that state, you’ll need to restart your PC instead.
16:51
lol no idea why that picture poped up
16:52
shutdown /s /f /t 0 xd
16:52
lets spam all available options and lets go
Avatar
well
16:54
fuck it lets go
16:59
nope. I even tried disable fastboot and stuff so its really a full restart ^^
Avatar
ok, well i dunno if there still is smth that can help maybe move your auto demos into a dir "old_auto" or smth maybe windows struggles opening the file to write
17:01
maybe rename you whole Teeworlds config dir to Teeworlds2
Avatar
ok sure. I now download a fully new client aswell from website.
Avatar
alright
Avatar
Avatar
Jupstar ✪
no, you didnt say install arch yet
the best is that this would prob fix it
Avatar
@HappyFray what GPU are you using?
Avatar
1060 (edited)
Avatar
Avatar
Jupstar ✪
maybe rename you whole Teeworlds config dir to Teeworlds2
i mean it got better now it doesnt drop below 100 anymore. while moving mouse. without moving mouse 4 digit fps counter
Avatar
<- soon™️
Avatar
ah nvm now its getting worse again.
Avatar
tried a different USB port for the mouse
Avatar
nope wait
Avatar
maybe there is smth really wrong with your motherboard xD
Avatar
@HappyFray Are you running on Windows 11?
17:08
not supported for 1600x
Avatar
Avatar
Jupstar ✪
maybe there is smth really wrong with your motherboard xD
tried 3 different. usb 3.0 usb 2.0 and front usb still no change (edited)
Avatar
@HappyFray on what OS are you running?
Avatar
win 10
Avatar
enabling modern opengl doesnt help?
Avatar
can you try in recovery mode?
Avatar
and restarting the client
Avatar
even with gl1 his pc should render this shitty game at over 1k fps xd
Avatar
Avatar
Chairn
can you try in recovery mode?
recovery mode? i mean sure i can try
Avatar
Avatar
Jupstar ✪
even with gl1 his pc should render this shitty game at over 1k fps xd
it does i have highest peaks at around 3-4k
17:12
just if i move my mouse . its lower 2 digit
Avatar
how much free space your disk have?
Avatar
Avatar
Ryozuki
and restarting the client
tried that hours ago
Avatar
Avatar
Chairn
how much free space your disk have?
overall around 2TB on my systemdrive its exactly 162GB atm. Game is installed on systemdrive aswell (edited)
Avatar
95fe457 Auto font size - Jupeyy 9d1844e Merge #4786 - bors[bot]
Avatar
Avatar
deen
yt-dlp is better
main reason is that youtube-dl is capped at around 60kb/s for me, while yt-dlp use full bandwidth. One technical difference is that yt-dlp emulates android browser agent which seems to have less limitation from youtube
Avatar
i dunno how it relates to mouse movement, but i defs read some "horror" stories about input lag and motherboards (tho i never experienced them xd) I'd really try to unplug anything that isnt important (and maybe change mouse if you or your brother/family has one)
Avatar
if it doesn't act like this on other games, this kinda rules out hardware malfunction (edited)
Avatar
depends if you notice it in other games
17:18
300fps in minecraft are different to 300fps in ddnet
17:18
i mean who can play minecraft modded with more than 10 fps xDD
Avatar
@HappyFray Just a random idea... Reinstall opengl driver https://developer.nvidia.com/opengl-driver then restart the computer and change the ddnet setting (send a screenshot of the settings here)
This page provides links to both general release drivers that support OpenGL 4.6, and developer beta drivers that support upcoming OpenGL features.
Avatar
Avatar
Jupstar ✪
i mean who can play minecraft modded with more than 10 fps xDD
chuck norris' computer has steady 60fps
Avatar
Avatar
Jupstar ✪
i dunno how it relates to mouse movement, but i defs read some "horror" stories about input lag and motherboards (tho i never experienced them xd) I'd really try to unplug anything that isnt important (and maybe change mouse if you or your brother/family has one)
In computing, a programmable interrupt controller (PIC) is an integrated circuit that helps a microprocessor (or CPU) handle interrupt requests (IRQ) coming from multiple different sources (like external I/O devices) which may occur simultaneously. It helps prioritize IRQs so that the CPU switches execution to the most appropriate interrupt hand...
17:20
maybe this is failing
wtf 1
kek 1
17:20
xd
Avatar
now comes the ryo-os expert
Avatar
@Jupstar ✪ i learnt about this from the rust os dev
Avatar
would be nice to monitor system cpu usage
Avatar
i have my own interrupt handler
17:22
the keyboard works
Avatar
cough cough In my os, i fxed this easy issue
17:22
cough cough
17:22
greenthing
Avatar
best fix is, unplug from electricy and wait 10 seconds xd
17:23
router restart issue solving
Avatar
i think it's better to wash it before plugging it back in
17:24
water + soap is very effective
17:25
if you want extra cleanness, add some acetone
Avatar
ahh, a propos clean pc clean the dust
Avatar
Is there an official list of master servers that are used to queue the game server over udp?
Avatar
master{n}.teeworlds.com?
Avatar
best jupstar practise: use a bicycle air pump and blow into the metalic frame from the cooler
Avatar
n ranging from 0 to 3 or 1 to 4
Avatar
Avatar
Chairn
master{n}.teeworlds.com?
No.
17:26
Not for DDNet master at least
Avatar
you cant believe how much dust there is inside xD
Avatar
I am also aware of master1.ddnet.tw, master2.ddnet.tw and master3.ddnet.tw, those do not seem to perform the udp query itself though (edited)
Avatar
the ddnet master server tool queries them from teeworlds master server
17:27
the teeworlds master servers are the ones where the servers are actually registered to (internet tab)
Avatar
I don't think teeworlds master queries servers
17:27
they're just used to register, and the client itself then queries when requested (edited)
Avatar
ddnet queries them from teeworlds
Avatar
which ddnet client doesn't do
Avatar
yes but now the ddnet https tool does that
Avatar
the client nowadays uses a static file
Avatar
@HappyFray is your pc still alive?
Avatar
Doesn't seem like master1-3 are the IPs used for performing the query unfortunately
17:28
this is what the tool generates
Avatar
Yes indeed
Avatar
hey i was wondering if the dyn-cam will be "removed" one day?
Avatar
but this info is being queried over udp
Avatar
Avatar
nouaa
hey i was wondering if the dyn-cam will be "removed" one day?
wtf? XD
17:29
i play full dyn
17:30
u good?
Avatar
Avatar
Fän
but this info is being queried over udp
yes, but ddnet has a server list for kog and ddnet anyway
17:30
its only for the servers in internet tab
Avatar
Avatar
Jupstar ✪
i play full dyn
how can you even play with it xD
Avatar
i think heinrich wanted to allow to register over HTTPs some day
Avatar
Avatar
nouaa
how can you even play with it xD
fng ez gores static, but i played all fly maps on ddnet with full dyn just for fun xd
Avatar
That doesn't really help at this time unfortunately, but fine, I'll just scrape these IPs then
Avatar
Avatar
Chairn
@HappyFray is your pc still alive?
So actually no 😂 but recovery mode fixed the issue
17:32
After restart something bad happened
17:32
17:32
Im fucked 😂
Avatar
wtf xD
17:33
what did uninstall it, a virus? XD
Avatar
Pressing any key does nothing btw
Avatar
a anti virus tool? XD
Avatar
No i actually have an idea why this happened but no idea to fix it 😂
Avatar
sorry, i don't speak german...
Avatar
he is missing a file
17:34
which is deleted now and he has to start recovery
Avatar
I think not only a file
Avatar
you uninstalled windowsß Xd
Avatar
time to format disk
Avatar
install linux
17:34
it will be better
17:34
if u only play ddnet its better too
17:34
more perf
Avatar
true
17:35
system calls are cheaper
Avatar
No if you Open msconfig you can change your installed Windows. I think it Tries to Open a not existing one Right now
Avatar
and ddnet calls network stuff every frame
17:35
waste like 20-30% cpu perf on windows xd
17:36
17:36
ja clar
17:36
ez ger
Avatar
Avatar
Jupstar ✪
waste like 20-30% cpu perf on windows xd
got a better way to get notified of network input on windows?
Avatar
i'd just put it into a different thread xd
Avatar
yo, i just want to be sure so i ask you guys, teeworlds is using his own protocol based on TCP to make communicate client <--> server ? (edited)
Avatar
udp
Avatar
ah ok so its based on udp, ty
Avatar
gandi (domain registar)send me this email
19:22
Dear Gandi customer, The increase in raw material costs (energy, computer components, etc.) and those of most of our providers has led us to revise our sales pricing. We are taking this decision in order to ensure we maintain a comparable level of service and product quality, while continuing to invest in our technologies and services.
>
As a result, we are notifying you of a price increase to take place April 11, 2022 for renewals of standard domain names (premium domain names excluded) you have currently registered at Gandi.
19:22
rip
19:23
i wonder how a domain name registration uses computer, energy etc
19:23
i call it bullshit
19:23
domain registration is probs a 1 time thing
Avatar
ez excuse xd
19:26
they take it
Avatar
Avatar
Ryozuki
domain registration is probs a 1 time thing
root dns servers 🙂
Avatar
OK 3 hours later my pc is back !
Avatar
congrats 👍
Avatar
Yeah thanks but teeworlds still lagging so cause recovery mode made it work i think its a software problem so well im gonna kill every single process till it works.
😰 2
Avatar
discord causing the problem.
Avatar
Discord somehow caused/causes a lot of weird problems (edited)
Avatar
even if minimized?
Avatar
rate my renderer, doing envelopes rn
Exported 299 message(s)