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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Haldrik
Wanderer


Joined: 03 Sep 2007
Posts: 88

PostPosted: Mon Sep 22, 2008 4:59 pm   

[2.36] Optimization- Pattern running every second- is it worth it?
 
I grabbed a roundtime trigger for Dragonrealms earlier,


After using the debugger, I notice it SPAMS its pattern. But its pretty effective for a round time trigger.

What do you guys think? This is the trigger.. (part of a system of triggers, but this is the spammer)


Pattern: * 1
Execute: #if (@RoundTime) {#add RoundTime -1} {#T- tRTAlarm}
Type: Alarm





Thanks :)
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Mon Sep 22, 2008 8:36 pm   
 
There probably is a better way to do it, but we might have to see the related triggers to give advice on it. For instance, how is the @roundtime variable set?
Reply with quote
Haldrik
Wanderer


Joined: 03 Sep 2007
Posts: 88

PostPosted: Tue Sep 23, 2008 1:35 am   
 
Pattern: Q
Exec: Nothing

Triggerstate off Q-

Pattern: q
exec: roundtime = %eval(%gsl(Q)-%gsl(q));#T+ tRTAlarm
type: gsl
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Tue Sep 23, 2008 7:13 am   
 
What exactly are you trying to determine? what the round time is? If that's so, have you tried using the Tick Timer? It may be more in line with what you want.
_________________
Asati di tempari!
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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