Guest AllanC Posted November 4, 2004 Share Posted November 4, 2004 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 More sharing options...
Administrators Jon Posted November 4, 2004 Administrators Share Posted November 4, 2004 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) wendOn my pc, it uses between 40 and 50 % of the cpu time constantly while downloadingI 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. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Guest AllanC Posted November 4, 2004 Share Posted November 4, 2004 How did you change the byte size? can yu give me an example? Link to comment Share on other sites More sharing options...
Administrators Jon Posted November 4, 2004 Administrators Share Posted November 4, 2004 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. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now