Jump to content

Recommended Posts

Posted

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

  • Administrators
Posted

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.


 

Posted

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

  • Administrators
Posted

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

In the source code. Nothing for you to do, it should be fixed the next time I upload an unstable version.


 

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
  • Recently Browsing   0 members

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