My game has really much lag. For example I did a while loop with a debounce of .3 seconds, it looked like 2 whole seconds. So while loops became laggy slow loops. Also, if I click a button to for example toggle a pointlight it takes like 1 second to process or something. Does anyone know how to fix this?
COMMUNITY QUESTION
Why does my game have so much lag? It became really slow. [Solved]
1 answer
You either have a virus in your workplace, or you have a really bad laptop/pc. < most likely situations
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Well, you could try checking your game for viruses. Maybe there's some viruses in your model, they always have names like "propergr@mmarneeded" and "vaccin", so try filtering for that kind of stuff. The second option is your computer lagging, which you can't really do anything about.
It is already fixed, it turned out I had over 5K while loops running. lol.