Topic: Some particles lag the game

Hello everyone. Some particle effects lag the game after updating to UFE 2.6.0. Is there any way to fix this? Thank you.

Share

Thumbs up Thumbs down

Re: Some particles lag the game

Under Network Options -> Particle Control, disable "Control Spawned Particles".

Like UFE? Please rate and review us on the Asset Store!
Questions about the Forum? Check out our Karma FAQ.
Don't forget to check our discord channel.

Re: Some particles lag the game

Yes, this is it. Thank you very much.

Share

Thumbs up Thumbs down

Re: Some particles lag the game

Okay, new problem with disable Control spawned particle. Some particle effects crashed game with error:

MissingReferenceException: The object of type 'GameObject' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
UnityEngine.Object.get_name () (at <17484a9af6b944dea5cd9be4dbb0da2c>:0)
UFE.DestroyGameObject (UnityEngine.GameObject gameObject, System.Nullable`1[T] destroyTimer) (at Assets/UFE/Engine/Scripts/Core/Manager/UFE.cs:2105)
UFE3D.ProjectileMoveScript.ProjectileHit () (at Assets/UFE/Engine/Scripts/Core/Physics/ProjectileMoveScript.cs:381)
UFE3D.ProjectileMoveScript.IsCollidingCharacter (ControlsScript opControlsScript) (at Assets/UFE/Engine/Scripts/Core/Physics/ProjectileMoveScript.cs:326)
UFE3D.ProjectileMoveScript.UFEFixedUpdate () (at Assets/UFE/Engine/Scripts/Core/Physics/ProjectileMoveScript.cs:284)
UFE3D.MrFusion.UpdateBehaviours () (at Assets/UFE/Engine/Scripts/Core/Network/Netcode/MrFusion.cs:50)
UFE3D.MatchManager.UpdateInstantiatedObjects (System.Int64 currentFrame) (at Assets/UFE/Engine/Scripts/Core/Manager/MatchManager.cs:263)
UFE3D.MatchManager.UpdateMatchState (System.Int64 currentFrame, System.Collections.Generic.IDictionary`2[TKey,TValue] player1PreviousInputs, System.Collections.Generic.IDictionary`2[TKey,TValue] player1CurrentInputs, System.Collections.Generic.IDictionary`2[TKey,TValue] player2PreviousInputs, System.Collections.Generic.IDictionary`2[TKey,TValue] player2CurrentInputs) (at Assets/UFE/Engine/Scripts/Core/Manager/MatchManager.cs:35)
UFE3D.GameManager.UpdateGameState (System.Int64 currentFrame) (at Assets/UFE/Engine/Scripts/Core/Manager/GameManager.cs:153)
UFE3D.GameManager.DoFixedUpdate () (at Assets/UFE/Engine/Scripts/Core/Manager/GameManager.cs:17)
UFE.FixedUpdate () (at Assets/UFE/Engine/Scripts/Core/Manager/UFE.cs:1734)

Can I somehow set particle effects to avoid this error?

Share

Thumbs up Thumbs down

Re: Some particles lag the game

Edit:
I disabled Auto destruct script in CFX Particles. Now it works properly.

Share

Thumbs up +1 Thumbs down