Sign in to follow this  
Followers 0
Guest AllanC

Inetget uses alot of cpu time

4 posts in this topic

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

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

How did you change the byte size? can yu give me an example?

Share this post


Link to post
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
Sign in to follow this  
Followers 0