Post

 Resources 

Console

Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VBGamer
 VBGamer
 Scripting...speed!

Note: You must be registered in order to post a reply.

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List Spell Checker
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

   Insert an File
Check here to include your profile signature.
Check here to subscribe to this topic.
    

T O P I C    R E V I E W
EACam Posted - May 17 2004 : 7:51:16 PM
Ok...which is faster, better, more powerful, overall better for a custom game (i don't want the MsgBox function and I don't use classes!), etc.

MS Script control?
Or Custom scripting language

If I did custom, then before actually running the game, the script would be compiled to a bunch of numbers refering to specific commands and variables, so i think it'd be pretty fast.

Any word of wisdom?
7   L A T E S T    R E P L I E S    (Newest First)
EACam Posted - May 18 2004 : 9:00:37 PM
Hey thanks!
ken_foust@hotmail.com Posted - May 18 2004 : 5:02:09 PM
My experience with VBScript is that it typically runs around 3 times slower then normal vb6 code. I was part of a group though that was able to utilize it as the top layer of a C++ client-server network. We were able to process 25 million orders within our 4 hour window...

I actually developed software to replace the MS Script Control so that our "top layer" could be debugged on the fly - you can dload it from planet source code. Search for VBScript Engine w/ Visual Basic...

Hope this helps
EACam Posted - May 18 2004 : 1:05:59 PM
Hmmm....well, I actually have a feeling that custom script would be faster, considering it would do ONLY what I need it to. Though the other is written in C++, it still has a LOT more to worry about. Whereas mine, would be compiled to mere numbers and run from Select Case structures mostly...

Maybe.
VBBR Posted - May 18 2004 : 10:54:47 AM
If you don't want to use the MS control you could use Lua instead.

Of course, if you find out how to use Lua in VB without having to declare thousands of functions, constants and enumerations...

(BTW, is there any utility that converts .h files to VB declarations? It would be so great if there was one)
cbx Posted - May 18 2004 : 03:38:35 AM
quote:
Originally posted by EACam
Any word of wisdom?



Use vb.net and CodeDOM to compile full vb.net code at run time. He he (I realize you are probably wanting to use vb5/6). Just a thought. But it sure would save you from writing your own scripting language ...
Eric Coleman Posted - May 17 2004 : 11:08:36 PM
If you create your own in VB, then it will be slower than using the MS script control, which is created in C++. Of course, I'd like to see someone prove me wrong, but I tried many different approaches to creating a scripting engine, and I was never able to get it as fast as the Scripting Control.
Sr. Guapo Posted - May 17 2004 : 8:59:02 PM
If it is done right, a custom script should be faster (as with many things). Are you using VB for the script, or another language (c/c++, etc.)?

VBGamer © Go To Top Of Page
This page was generated in 0.06 seconds. Snitz Forums 2000

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.