
So I was unsure if I should put this in the bugs or API script section due to how old the creature gen (by Ken L.) API script is and the fact it's related to an API script but I've been using it for years and with a recent roll20 update I suddenly had some huge issues with tokens. I know the script is no longer supported but I also can't figure out what is causing the issue as CGen has nothing to do with vision OR lighting (it doesn't even apply vision to the token at all and never has). To explain the issue: when attempting to move a token that was created with CGen I experience unbelievable lag. As in after clicking on the token and trying to move it it'll be about 5 seconds before the game is registering that I've attempted to move the token. This problem magically goes away if I re-upload the token and reassign it to the specific monster sheet and input the token information manually (but this is time consuming and annoying. This is a temporary fix, not really a perm. one). Does anyone have any ideas as to why this is happening? I know that Cgen pulls the sheets image for the token but I cannot think as to why this would cause such extreme lag either. The token still has absolutely no vision what so ever. I cannot figure out why it is lagging Dynamic lighting so hard (with Dynamic Lighting turned off there is 0 lag). Edit, and an update; Having looked through the whole API script I discovered there is, in fact, a part of the code that set's vision on for the token. But this turns on vision for the legacy lighting which normally wouldn't do anything because I have legacy lighting turned off. For some reason, it's messing with the tokens so that even on advanced dynamic lighting the legacy lighting vision being on is causing the tokens to lag extremely bad. Manually go into the token, turn on legacy lighting, click off the token vision and boom. It's suddenly smooth again. I have no idea why this is happening. I am still confused as to why this is causing advanced dynamic lighting to read the legacy lighting token information.