Hey all,
I've been running into some really weird behaviour in Airscape recently. One of the visual effects involves zooming in very rapidly. I've noticed that on occasion, this rapid zooming can cause *incredible* lag spikes and recently I've heard reports of the entire game crashing during these zooming sections!
I've recently been doing some testing, and it's a very weird issue. Here are some of the things I've noticed:
- it happens very infrequently, and repeating the zooming process under the same conditions can either reproduce the problem, or work perfectly fine.
-When it does happen, the profile measurement for CPU 'draw calls' skyrockets, eventually reading as >100% of the CPU just used in draw calls.
-I've checked and double checked, and I'm not doing anything dumb like accidentally spawning hundreds of objects while zooming. It's definitely the zoom that causes it.
-It only seems to happen when zooming *quickly*. Slow zooms won't cause the issue.
-It only happens on a certain layout of the game (the map screen). Rapid zooming in other levels has never caused a problem.
-I can't find a reliable repro, no matter what I do. I do know it seems to happen more often when the GPU is already struggling.
Basically, I'm asking if anyone has any idea what could be causing something like this? It's driving me up the wall and it's a high-priority issue as it's crashing the game for a lot of users. What on earth could cause the draw calls to skyrocket all of a sudden like this, and so unreliably?