Projectile causing freezing on mobile

Hi There,

I have a situation where I spawn a homing projectile. Works fine in PIE but when I play on mobile (packaged, launched whatever) the game freezes once and then works just fine after about 10 seconds. same thing occurs again when I spawn a different projectile. Ive tried substepping, but not sure its supported on mobile (didnt help). I can spawn other more complex objects with no lag at all.

Any help at all would be hugely appreciated.

Hi GoatOfDeath,

Would you mind sharing what device you are deploying to specifically? Also it would be helpful to know if you still get the freeze in a template project with only the projectile. Removing any extra content will make sure that this isn’t caused by multiple assets but just the projectile.

!

Hi Ed,

for accommodating.

Deploying to an S4.
Have been running a few tests in templates and projectile spawn seems fine even when replicating.

The setup in question works on a timer that fires an event to set a bool which then allows my animBP to move into a firing state which then uses a notify that tells char to fire a projectile. its a bit convoluted but need control over when the projectile spawns during the animation.

There could be a lot going wrong here, will keep testing to narrow down issues.

Ok progress.

I added the projectile actors into my level to ensure they load. Now there’s no delay but a significant increase in load time which is expected I suppose.
Hope this helps someone!
Pls mark as closed.

Xxx

I can just accept your answer. That way this will appear in my queue and the ticket can be reopened if anyone leaves a comment here in the future.