Author | Message | Time |
---|---|---|
Ringo | hmm, I got bored again :p I read HDX's post in the C++ forum, and it got me thinking: https://davnit.net/bnet/vL/index.php?topic=17719.0 Since I wrote an ASM class for vb6, I thought id see how fast I could really get VB6 CheckRrevision moving! Ive been comparing it with BNCSutli.dll, and got it moving 2 times as fast :) I'm posting it here incase anyone want's to add it to their bot. You can download the test project here: [size=3]VB6Checkrevision.zip[/size] You will need to paste Warcraft3 binary's into the same directory as the project, since they are not included in the zip. Here's some out put's compared to BNCSutli.dll's: [code] VB6 Check revision: Time = 93ms Checksum = 0xB268CECB Version = 0x11600B8 Info = war3.exe 08/19/08 12:58:06 471040 [/code] [code] C++ Check revision: Time = 203ms Checksum = 0xB268CECB [/code] The project/code is abit of a mess, so you might want to clean it up before useing it. 1 Main advantage of this, is it runs just as fast in debug mode, as it does compiled! All suggestions are welcome, but please note: I know the code is a mess ;) | December 20, 2008, 7:29 PM |
HdxBmx27 | [code]VB6 Check revision: Time = 46ms Checksum = 0xB268CECB Version = 0x11600B8 Info = war3.exe 06/27/08 04:01:34 C++ Check revision: Time = 109ms Checksum = 0xB268CECB[/code] Sexy sexy, Good job, now just clean it up and make it look pretty! | December 20, 2008, 7:45 PM |
l2k-Shadow | clsASM = cheating :X | December 20, 2008, 9:08 PM |
dRAgoN | nifty, how fast with the rest of the clients, average time over multi tests. | December 20, 2008, 10:01 PM |
Ringo | [quote author=Hdx link=topic=17756.msg180904#msg180904 date=1229802314] [code]VB6 Check revision: Time = 46ms Checksum = 0xB268CECB Version = 0x11600B8 Info = war3.exe 06/27/08 04:01:34 C++ Check revision: Time = 109ms Checksum = 0xB268CECB[/code] Sexy sexy, Good job, now just clean it up and make it look pretty! [/quote] You're comp > My comp :( [quote author=l2k-Shadow link=topic=17756.msg180905#msg180905 date=1229807310] clsASM = cheating :X [/quote] How so? :p Besides afew API's, it's all native VB6 ;) [quote author=l)ragon link=topic=17756.msg180906#msg180906 date=1229810488] nifty, how fast with the rest of the clients, average time over multi tests. [/quote] uh, Ive only tested it with W3 because of their large binarys :) But heres some average times for 100 loops of checkrevision. I did it about 5 times on both, and wrote down the best average time: [code] WAR3: VB6 = 107ms C++ = 210ms W2BN: VB6 = 10ms C++ = 26ms SEXP: VB6 = 18ms C++ = 37ms D2XP: VB6 = 10ms C++ = 20ms DRTL: VB6 = 12ms C++ = 28ms [/code] | December 21, 2008, 1:25 PM |
PunK | [code] VB6 Check revision: Time = 1781ms Checksum = 0xB268CECB Version = 0x11600B8 Info = war3.exe 06/27/08 00:01:35 471040 [/code] [code] C++ Check revision: Time = 94ms Checksum = 0xB268CECB [/code] Hmm. | December 26, 2008, 5:54 PM |
Ringo | [quote author=PunK link=topic=17756.msg180959#msg180959 date=1230314099] [code] VB6 Check revision: Time = 1781ms Checksum = 0xB268CECB Version = 0x11600B8 Info = war3.exe 06/27/08 00:01:35 471040 [/code] [code] C++ Check revision: Time = 94ms Checksum = 0xB268CECB [/code] Hmm. [/quote] Sounds like a hard-drive thing, or w/e causes lag when you 1st run somthing that reads large amount of data from HD. If you ran BNCSulti 1st, it would have also taken a few seconds to do. Try it a few times ;) | December 26, 2008, 6:30 PM |
MysT_DooM | [quote]VB6 Check revision: Time = 78ms Checksum = 0xB268CECB Version = 0x11600B8 Info = war3.exe 06/27/08 00:01:35 471040 C++ Check revision: Time = 281ms Checksum = 0xB268CECB [/quote] good stuff, ill make sure too use this | December 26, 2008, 8:27 PM |
PunK | Oh yeah, now it's faster. 31ms vs 125ms... Interesting. Good job! | December 26, 2008, 10:52 PM |