I created a small game which runs very slowly and I don't know why

I made a game using the FPS template and after working on it( this is my second game, so second time it happens) it runs really slowly. I didn’t even change the graphics or anything and is a very, very small game. But somehow Im getting less than 30 fps with a Geforce 1080. Is it something maybe about the lighting? I have to know how to fix it because I need to play it on a laptop for a highschool project.

Difficult to tell given what you have shared.

Recommend starting yet another FPS template and running this to make sure that the template without your changes gets you the frame rate you are expecting.

Once here, maybe you can add small chunks of your game to this new game/project and run this to make sure that the small chunk gets you the frame rate desired. If so, keep layering on until the next layer causes the issue. Then, you would have a better idea where your game is causing the lag.

Otherwise, I would suggest installing git, or some kind of revision control, on you PC and do somewhat the same steps; however, each step would be a check-in to your repository. Git would allow you to at least revert changes once you find the chuck of code that is causing the lag.

Well, Ive tried it on a second pc tho and it’s still worse, so I just wanted to create a very simple graphic game, and I changed no settings of the original FPS Shoter which is slow too. In the editor it works fine