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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
chris-74269
Magician


Joined: 23 Nov 2004
Posts: 364

PostPosted: Sun Jun 18, 2006 4:55 pm   

priority in triggers
 
in the trigger options, what is up with the values in the priority window?
Reply with quote
edb6377
Magician


Joined: 29 Nov 2005
Posts: 482

PostPosted: Sun Jun 18, 2006 8:10 pm   
 
decides where in line it falls. although i admit the 2650 numbers etc are a bit confusing i guess it gives us lots of room :P
_________________
Confucious say "Bugs in Programs need Hammer"
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Wed Jul 05, 2006 7:09 pm   
 
It was done for performance reasons. As edb mentioned, it gives room for inserting/changing priorities. Currently, CMUD makes the priority 10 times the "index" number, which is the order in which settings are created. This gives room for inserting other items without having to renumber every setting.

Remember that CMUD is using a database. The priority is a field stored in the database for each trigger. If you dragged/dropped a trigger into a new priority order, then normally CMUD would need to update every database record after that to add one to all of the priorities. By leaving some space between priorities, it significantly reduces the number of database records that need to be updated when you change priority orders.

So yes, the large numbers might be a bit confusing to new people, but I think the big performance boost is worth it.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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