Numbered Steps to Reproduce Problem:
1.Create some simple verbs, some menus with Stat() etc...but make one of them show up in another tab...like Rise of Heroes has a temporary tab that appears when you get close to npc's or on top of items you can pick up...
2.Do what's required to make the tab/verb appear...and watch it lag...
Code Snippet (if applicable) to Reproduce Problem:
Project: http://1drv.ms/1J47PKr
Expected Results:The new tab should show up without extreme lag.
Actual Results:The new tabs show up after a huge lag spike.
Does the problem occur:
Every time? Or how often?Every Time
In other games?Yes
In other user accounts?Yes
On other computers?Yes
When does the problem NOT occur?Workarounds listed below.
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
Every Version
Workarounds:
The workaround is to make the verbs that appear show up in an existing verb panel or find a way to keep the temporary panel up without anything inside of it.
NOTE: The lag isn't as huge in Rise of Heroes as in this project, but it's still annoying and quite noticeable...and can even cause you to be killed by an enemy...if it's not lagging when you get close to the object in the middle with your character, increase the for() loop that set at 1000 iterations.
I have commented out the "set category=CategoryNameHere lines, so try it once normally with the verbs in another verb panel, then test when it adds the new tabs for the verbs...one of them is instant, one of them isn't.
***I don't know if the problem is caused by Stat() itself, caused by the amount of data shown over all the tabs or the exact cause...but it shouldn't be that much lag to show a verb in a tab that has to be shown...
Also I'd like to know: If this actual network lag, or is it something in the server or client processing? If you run this in Dream Daemon and join it in Dream Seeker on a local connection, you should be able to see in your task manager if either one of them spikes. If so I'd like to know which one.