 |
Haldrik Wanderer
Joined: 03 Sep 2007 Posts: 88
|
Posted: 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 :) |
|
|
|
 |
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: 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?
|
|
|
|
 |
Haldrik Wanderer
Joined: 03 Sep 2007 Posts: 88
|
Posted: 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 |
|
|
|
 |
Tech GURU

Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: 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! |
|
|
 |
|
|
|