- Home /
particle system looks different when frame rate is low
like the title says the particle system looks different when the frame rate is low. i made a bullet that has a particle system as a trail.Like fireballs and such and i was testing something using Application.targetFrameRate to find bugs and i found that the particle system just stays on one place instead of following the bullet.but when the framerate is normal it usually just follows the bullet is there a way to fix this? Thanks in advance
Answer by rodoiada · Jan 04, 2021 at 11:22 AM
Hey SSuper!
Are you placing your code inside an Update? Maybe try using a Fixed Update instead....
It's a frame-rate independent update method! https://docs.unity3d.com/ScriptReference/MonoBehaviour.FixedUpdate.html
Hope I may help you :)
I tried that but it didn't work. the trail is a child of the bullet. But I totally do appreciate your answer! And I could use the fixed update function in the future
Thanks! I'll do my best to try to figure out a way, but for now, just hope you'll find the help you need!
Ok, maybe I have found something. Are you familliar with Time.deltaTime or Time.fixedDeltaTime?
This property gets the time between the current and previous frame. So if you multiply a changing value in Update or FixedUpdate by the Time.deltaTime or Time.fixedDeltaTime you are going to get the output independent of your framerate.
I may not be completely aware of how your code is nor of how this property concept works, but maybe there is a commad which you may multiply by Time.deltaTime and it should move accordingly.
Hope this may help!
Your answer
Follow this Question
Related Questions
Reducing Lag due to Large Particle Systems and Trees 1 Answer
ParticleSystem parented to object parented to Humanoid hand is jagging when ROTATING only. 1 Answer
Lag in Game making character jump 1 Answer
Massive Touch Lag on mobile devices? 3 Answers
Why does holding down any button cause ~20-30 FPS loss? 1 Answer