Here is a strange lag bug that I can’t seem to find the cause of… Any suggestions on how I would even begin to debug this? It seems to have suddenly started happening on all levels. It works fine when testing from the editor in standalone mode, but lags like this when I release it…
Here is a video of the gameplay demonstrating the lag spike. It seems to happen regardless of graphics settings (epic or lowest). It only acts up near the beginning of a level’s play, and then works fine after that. Sometimes it lags a few times, sometimes once, sometimes none. It happens at 9 seconds this time.
You mentioned the issue is only happening after packaging, so it could get tricky to do this. You would have to make sure you are still packaging as development and attach Execute Console Command nodes to begin play or maybe an input node.
Not anything in particular I can think of, there is a lot of stuff going on, but not anything with a delay of multiple seconds. One thought was a physics issue - e.g. a rock rolls into something, but it happens on other levels without physics objects. Apex destructible windows could be as well, but they don’t get destroyed during the lag spikes. There is a lot of initialization, but that seems to happen within the first fraction of a second. Will have to try experimenting with console commands and the dev build.
Can’t really recommend much from here. If you can’t find answers, maybe post a level ( or just as much as you need ) somewhere so I can download and take a look.
Thanks all for the help! It isn’t doing it now, and I can’t seem to duplicate it anymore - I was able to readily when it was happening, between game starts. Perhaps it was just something causing lag spikes on my computer? If I ever see it again, I would like to confirm by trying with another game and see if the same thing happens. Thanks all for the help!