Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
slash_2_2000
Beginner


Joined: 27 Jul 2005
Posts: 20

PostPosted: Sun Jun 17, 2007 11:39 am   

Sending batches of commands always starts slow
 
It doesn't matter what I'm doing, if I'm looping, or just sending a big list of commands. The first few commands are always slower than those following.

If I send a big list of commands at once, there'll be a delay between the first command and all the rest. It will send the first command, lag for a bit, then send the others. Not a long delay, but enough to be annoying.

Say I loop selling something in my game. It will go like so...

Sold... Sold.. Soldsoldsoldsoldsoldsoldsoldsoldsoldsoldsoldsoldsoldsoldsoldsoldsoldsoldsold

I am really thinking it's a zMUD thing, because if zMUD is already processing commands before I send simeltaneous commands, they come out simeltaneously. So, if I... say, jump in my game, then immediately send the three commands, the three commands come out simeltaneously. It's not latency from the game, because the later commands come out very fast. Only the first one or two commands are slow.

It would be immensely helpful if there was a way to make commands come out faster and any help would be hot.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Sun Jun 17, 2007 12:49 pm   
 
Problems with speed are normally a problem with the way your script's written. If it's a complicated script, there are probably ways to simplify it to make it faster if you post the whole script.

If it's not that, it's more likely to be your computer in general. Just follow the standard load-decreasing procedure and close anything you don't need.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
slash_2_2000
Beginner


Joined: 27 Jul 2005
Posts: 20

PostPosted: Sun Jun 17, 2007 1:04 pm   
 
It doesn't matter which script I'm using or how I do it, it just lags that way. I have a fast machine, I highly doubt that raw computing speed would be the problem.

When you say 'standard load-decreasing procedure', you just mean closing programs, or is there actually an amazing zMUD procedure I don't know about?
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Sun Jun 17, 2007 4:59 pm   
 
I am gonna go off on a limb here and say that because zmud is interpreted your running into something like this

start loop---lag while it computes loop
send item 1 --- lag while it computes loop AND has to proccess other incoming text in the background
send item 2 --- lag while it computes loop AND has to proccess other incoming text in the background
send item x ---- super fast cause it has computed the rest of the script

You could try enclosing your loop in #PRIORITY {} blocks to see what happens
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Sun Jun 17, 2007 6:42 pm   
 
I just meant the former.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net