• Welcome to Valhalla Legends Archive.
 

VB6 Checkrevision On Smack

Started by Ringo, December 20, 2008, 01:29 PM

Previous topic - Next topic

Ringo

hmm, I got bored again :p
I read HDX's post in the C++ forum, and it got me thinking:
http://forum.valhallalegends.com/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: VB6Checkrevision.zip
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:

VB6 Check revision:
   Time     = 93ms
   Checksum = 0xB268CECB
   Version  = 0x11600B8
   Info = war3.exe 08/19/08 12:58:06 471040


C++ Check revision:
   Time     = 203ms
   Checksum = 0xB268CECB

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 ;)

Hdx

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

Sexy sexy, Good job, now just clean it up and make it look pretty!

Proud host of the JBLS server www.JBLS.org.
JBLS.org Status:
JBLS/BNLS Server Status

l2k-Shadow

Quote from: replaced on November 04, 2006, 11:54 AM
I dunno wat it means, someone tell me whats ix86 and pmac?
Can someone send me a working bot source (with bnls support) to my email?  Then help me copy and paste it to my bot? ;D
Já jsem byl určenej abych tady žil,
Dával si ovar, křen a k tomu pivo pil.
Tam by ses povídaj jak prase v žitě měl,
Já nechci před nikym sednout si na prdel.

Já nejsem z USA, já nejsem z USA, já vážně nejsem z USA... a snad se proto na mě nezloběj.

l)ragon

nifty, how fast with the rest of the clients, average time over multi tests.
*^~·.,¸¸,.·´¯`·.,¸¸,.-·~^*ˆ¨¯¯¨ˆ*^~·.,l)ragon,.-·~^*ˆ¨¯¯¨ˆ*^~·.,¸¸,.·´¯`·.,¸¸,.-·~^*

Ringo

Quote from: Hdx on December 20, 2008, 01:45 PM
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

Sexy sexy, Good job, now just clean it up and make it look pretty!
You're comp > My comp :(

Quote from: l2k-Shadow on December 20, 2008, 03:08 PM
clsASM = cheating :X
How so? :p
Besides afew API's, it's all native VB6 ;)

Quote from: l)ragon on December 20, 2008, 04:01 PM
nifty, how fast with the rest of the clients, average time over multi tests.
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:

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

PunK


VB6 Check revision:
   Time     = 1781ms
   Checksum = 0xB268CECB
   Version  = 0x11600B8
   Info =
war3.exe 06/27/08 00:01:35 471040



C++ Check revision:
   Time     = 94ms
   Checksum = 0xB268CECB


Hmm.

Ringo

Quote from: PunK on December 26, 2008, 11:54 AM

VB6 Check revision:
   Time     = 1781ms
   Checksum = 0xB268CECB
   Version  = 0x11600B8
   Info =
war3.exe 06/27/08 00:01:35 471040



C++ Check revision:
   Time     = 94ms
   Checksum = 0xB268CECB


Hmm.
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 ;)

MysT_DooM

QuoteVB6 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

good stuff, ill make sure too use this


vb6, something about that combination of numbers and letters is sexy

PunK

#8
Oh yeah, now it's faster. 31ms vs 125ms...

Interesting. Good job!