I'm not sure why I would be having a memory issue when my computer has 16GB of RAM, but C3 works off things like browser tabs, so it might be a thing still?
I have a lot of events because some functions have a ton of conditions and nested events and there is no way to break them down further because I have spent a ridiculous amount of time optimizing the game. Unless I'm not thinking of something. In one instance there's a function that makes the player character fire 1 out of 100+ different weapons based on which they have equipped. It really needs to be done through a function only because if the game just checks that amount of events every tick, there's a drastic higher impact on performance.
I never had this kind of lag ever in Construct 2 with even more complex states in my games and I can go into regedit.exe that comes with Windows and expand like 5 million entries on the registry tree and it doesn't lag at all.