08-03-2007, 03:13 PM
Thats what I did, and it seems to work pretty well. Keep a variable for every stat that needs to be updated when it changes. Every time you assign a value to the stat, check if it is a new value. If so, set the changed flag to true. Then, every few hundred milisecs, check through all the variables and see if you need to update.