Should we really be calling the rule_manager inside of Process functions?
Code: Select all
sscanf (rule_manager.GetGlobalRule(R_World, DuskTime)->GetString(), "%d:%d", &dusk_hour, &dusk_minute);
sscanf (rule_manager.GetGlobalRule(R_World, DawnTime)->GetString(), "%d:%d", &dawn_hour, &dawn_minute);I just ran into this doing the new R_Zone:SpawnUpdateTimer rule, where it was being pounded every tick, and decided to make it an int16 defined once in zone init.
However, since I do not know how well C++ "thinks", I do not know if it's any different slamming GetGlobalRule() repeatedly, or setting it once and using the int.
Thoughts?