gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Wifi speed towards the internet

#148915 - DSfriol - Fri Jan 11, 2008 10:38 pm

Hello.

How fast is doing an HTTP request to the internet via wifi?
With an homebrew program, I'm getting a page that is something like 37kb big in minutes (speed is something like 0,7kb per second), while a wifi local connection is 100 times faster.

I'm using happyhttp.
Thanks

#149318 - PypeBros - Fri Jan 18, 2008 10:07 am

I'm not sure I understood your measures very clearly, and you must be aware that long-range HTTP (or any TCP connection) throughput is affected by number of parameters including maximum end-to-end delay and amount of buffers available on the end systems.

I suspect the DS to have less such buffers thn other devices, meaning that it cannot compensate for a long end-to-end delay very well.
Make sure you pump as much data as you can in each recv() call, too. Asking for only 256 bytes, for instance, lead to poor results in my experience, compared to e.g. 4KB chunks transferred from WiFi to FAT device.

FYI, I typically download stuff from a more or less local relay (e.g. same ISP, but not same network) through my DSL line (4Mbits download) and observe typically 20-30 sec. to transfer a 256-320KB file.
_________________
SEDS: Sprite Edition on DS :: modplayer