0
Cannot Fix

Awake causes bottleneck in Async Scene Loading

Steven Wong 4 months ago updated by Lazlo Bonin (Lead Developer) 3 months ago 1

Hello,

I get a huge lags pike when I loading a scene async with a object containing a state machine. I will causes huge lag especially running it in a low / middle grade Android Phone.

Any methods so we can do to reduce this lag? (We use different scenes to contain different UI, so the player feel un-responsive while play our game)

Thanks.

Bolt Version:
1.4.3f2
Unity Version:
2018.4.0f1
.NET Version:
.NET4.X
Cannot Fix

Hi Steven,

Sorry you're experiencing this issue. Unfortunately, I believe this performance cost is a hard limitation of Bolt 1. We cached a lot of things on Awake to make sure everything runs very fast at each frame.

In Bolt 2, which is currently in Alpha, we generate C# scripts instead of using reflection at runtime. This will actually entirely eliminate the cost of Awake that you're seeing here.