I'm not sure how to make it less laggy on the browser, I'm trying to fix it. Thanks for playing!
Viewing post in A Bug's Light jam comments
I don't know how it's code, but it seem that what can take performance is the movement of the bugs, the light and the detection of the character in the light. You may optimize by culling the bugs/light which are too far from you rplayer. Every or every few physicframe (fixedupdate in unity) you check the distance between the bug/light and your player. It it's smaller than a fixed distance then you enable them, otherwise you disable them.