Jump to content

Inetget uses alot of cpu time


Guest AllanC
 Share

Recommended Posts

While testing the inetget command, i notised that it uses alot of the cpu time while downloading, just to download that single file, no other commands was running..

Why's that?

InetGet("http://www.ige.dk/files/Battlefield2/BF2-Lanvegas.rar", "test.rar", 1, 1)

while 1
sleep(10000)
wend

On my pc, it uses between 40 and 50 % of the cpu time constantly while downloading

Link to comment
Share on other sites

  • Administrators

While testing the inetget command, i notised that it uses alot of the cpu time while downloading, just to download that single file, no other commands was running..

Why's that?

InetGet("http://www.ige.dk/files/Battlefield2/BF2-Lanvegas.rar", "test.rar", 1, 1)

while 1
sleep(10000)
wend

On my pc, it uses between 40 and 50 % of the cpu time constantly while downloading

I ran the InetGet code in its own thread that downloaded in chunks of 8 bytes (so that it could quit quickly if asked to). I guess even with a slow modem you can download at 3-4KB/s so i've changed it to download in 1KB chunks which should still leave it nice and responsive. CPU usage has dropped to 1% on my PC with the change.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...