Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Lag and API's

1594797236

Edited 1594797438
Hi So I have happily been installing scripts since I got my Pro account and now have a good 30 plus installed (gone mad:p) anyway I was about to install Status FX and I was reading a post about it causing a lot of lag. I have never stopped to think about lag as a issue before seeing that post and was wondering if I am setting myself up for problems with all the other API's I have running? Any advice?  
1594815796
The Aaron
Roll20 Production Team
API Scripter
Probably not.  Lag caused by a script should be the exception, not the rule.  API Scripts are event driven, so will only do any work when a triggering event occurs.  The problem you would run into is when a script is too promiscuous with the events it reacts to, and does too much when they occur.  If you are mindful of what happens when you add scripts, and notice a script that is causing problems, bring it up on the forums and we can fix it. 
1594818053

Edited 1594818063
Ada L.
Marketplace Creator
Sheet Author
API Scripter
Status FX can cause lag because the particle effects can be resource-intensive if there are too many being rendered at a time. There used to also be an issue where if you switched tabs, it would wait to render all the FX until you return to the tab, causing it to render too many FX at once. Not sure if Roll20 may have fixed that though. I haven't used that script in years.
1594818754
The Aaron
Roll20 Production Team
API Scripter
99% sure that bug is still around.  The same thing happens with pings.
So I can have it installed and it will not cause any issue even if just sitting in the background as it does nothing unless I call upon its function then I have to be careful to not have many of them going off over many maps etc? Is that correct? 
Giulio M. said: So I can have it installed and it will not cause any issue even if just sitting in the background as it does nothing unless I call upon its function then I have to be careful to not have many of them going off over many maps etc? Is that correct?  Yep, that is how we use it and it works fine.