Hey, so I played your game and I think the concept is nice, the movement and shooting feels very juicy. However after killing the last enemy of the first wave, the framerate drops very drastically to 2-3 fps for about 10-15 seconds, and then normalizes again. This happened multiple times after killing certain enemies. I'm not sure what could cause this. I don't think it's my machine, it should easily be able to handle a game of this scale. If you need more info on this let me know
Thanks for the feedback! You’ve pointed out a serious issue which I’m very stumped on. For me, the only lag spike is at the start of the game but it is quite annoying. The fact that you had multiple is a cause for concern and I’ll have to look into this deeper. It’s very strange because I’ve made sure there are no memory leaks or anything like that and I’m really confused as to why this could be happening. The thing that is interesting though, my lag spike I get at the start, it drops to about 10 fps for 2 seconds so that’s not as bad as yours and only happens at the start. I have set debug keys to change the max fps, im pretty sure if you accidentally pressed the “1” key it would set the max fps quite low. If you’re willing to check this, could you press the “1” key or different number keys and see if you can recreate the lag spike you were having with that. I have a feeling it’s either simply you accidentally pressed a number key or it’s a serious issue with the game.
No I don't think I pressed any number key on accident. The problem also resolved itself after a little while. But I tried it again, and this time it was fine, there were no lag spikes. I tested the number keys in the beginning and they worked fine as well. I played it for a bit and the enemies stopped spawning at some point after a wave, is that intentional? Also another thing that I noticed was that the bullets dont spawn directly from the player (which is fine) but that offset means they dont go exactly to your mouse pointer but are slightly off. Maybe you could take a look at that
Yeah the fix for the bullets is implemented in the next update which should be released tomorrow or even today, I’ve also sorted out the lag spike issue in this update as well and it was simply caused by textures loading for the first time. Never would’ve guessed this was the issue but to fix it I added a texture loader at the start and the frame time shows a massive improvement. With the enemies, yeah that’s the end of the wave when they stop spawning. Again I’m just doing the fundamentals first which is why I don’t even have a menu screen and only 1 wave.