Page 1 of 1

trigger speed/usage of resources

Posted: 21 Nov 2015 13:01
by Alisa
Hi.

What is fastest, and what uses less resources?


A trigger with (1|2|3etc.etc) listing as example all imbues or herbs or whatever
VS
A trigger using a variable?, stored setting in gmcp.user.something with the same entries

Re: trigger speed/usage of resources

Posted: 22 Nov 2015 01:54
by britanica
It is my current understanding that the gwc.userdata object is serialized and sent the the server every time you issue a command.

If that assumption is true, it is faster for game play to declare a var in the javascript trigger instead of initializing and storing that information in gwc.userdata as a computer can create a object faster from its declaration in the script than it can when the information needs to be streamed from the server and deserialized.

Initializing the information in your own global variable (outside of the gwc object) would be faster if you can create it after login.