View Single Post
  #20  
Old 10-07-2006, 10:28 PM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
The principal problem with making a variable and setting it equal to the more complex array entry you want reflected in the profile is that, while effective, it is crude in the sense of efficiency - you have to update the profile-ready variable every time you update the array entry. While that's not a whole LOT of overhead, it can be if the variable/string/array changes frequently, and what's worse, it's one more operation to be transcribed an unbound number of times: if the array ever changes and someone forgets to update the profile-ready variable, it'll be reflecting the wrong information on the profile.

Now, maybe if there was an action for onProfileOpen, that could work...but I've been up to my ears in figuring out the most efficient way of sending details like "A lot of information about another player's gani which isn't likely to change a great deal while these two players are online, but might, so should it re-send every detail every time they appear on each others' screens, or should it send updates even when they're not on each others' screens, or...?"

Nicely complicated. So glad this game has Stefan to deal with these issues, he actually knows what he's doing.
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote