Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wifi unstable #5

Open
Fewnity opened this issue Jul 6, 2022 · 1 comment
Open

Wifi unstable #5

Fewnity opened this issue Jul 6, 2022 · 1 comment

Comments

@Fewnity
Copy link

Fewnity commented Jul 6, 2022

Hello everyone, I know this projet looks dead but you know? maybe someone has the solution.

I'm using dswifi for my big game project (Counter Strike) on the ds.
But sometime the ds it takes a long time before sending requests, like 0,5 seconds, it's very random, or sometime the ds is disconnected from the network and can't reconnect to the wifi, I need to restart the game (My ds are not faulty, I have 3 ds classic, an old 3DS and a new 3DS, same problem on every ds).
Why the communication is so unstable? Thanks!

@devkitPro devkitPro deleted a comment from AccountForCommits Jul 16, 2022
@sgstair
Copy link

sgstair commented Apr 19, 2023

There's multiple sub-optimal features of the current stack for real-time communication, but if you see a long delay, typically it's actually due to wifi packet loss. The TCP/IP implementation in the library currently doesn't have any optimizations for improving packet loss cases, so it'll just periodically retry if it doesn't quickly get acknowledgement for data it's sent.
If you can use a UDP protocol, that will reduce the impact of packet loss, you'll have more control over when and how often packets are sent.

The disconnection I'm less sure about, there may be a bug in the wifi code, or potentially also in other code in the system if it's corrupting memory somehow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants