Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Particle System is smooth before exporting to iOS, but then looks pixelated after export to iOS

Discussion in 'General Graphics' started by ryandobal_unity, Nov 10, 2021.

  1. ryandobal_unity

    ryandobal_unity

    Joined:
    Mar 16, 2020
    Posts:
    6
    I am creating a game where an object remains in place as its surroundings move towards it. I added several particles and effects to make it seem as though the player is moving forwards, including a trail effect.

    In this scenario, a trail wouldn't work, so I created an alternative using the particle system in Unity. I made particles fire backwards from the player (the particles being a child of the player) and decrease in size over their lifespan. On my computer, this works great! When I move the player left and right (using transform.position + and - speed * Time.DeltaTime), its perfectly smooth, as seen in screenshot-1.png attached below.m

    Exporting the project to my device (iPhone 12 Pro) yields a different result, and I don't believe the hardware is the culprit as the phone is fairly recent. When I move the player, the trail becomes pixelated, but returns to its original unpixelated form as soon as I stop moving. This can be seen in screenshot-2.jpg. Interestingly, if I stop moving, but the particle trail is still at a curve/angle (a little hard to explain, but basically when the trail is still slightly curved after the player stopped moving or died), the trail is no longer pixelated as seen in screenshot-3.jpg.

    I am lost as to whether this is a bug in the unity software which I might be unaware of (if so, would a upgrade/downgrade fix this?) or if there's something I am missing?

    I suspect it might be something with using transform.position to move the player, but using another way to move the player such as AddForce wouldn't work as the whole idea is to move suddenly with no acceleration.

    Your support would be greatly appreciated. Thank you very much!

    Screenshot 1: Smooth particle movement when run on PC.
    screenshot-1.png


    Screenshot 2: Pixelated when moving left/right
    screenshot-2.png

    Screenshot 3: Smooth particle movement if I don't move the player but is moved by another force (explosion force, in this case).
    screenshot-3.png
     
  2. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,240
    What version are you currently on?
     
  3. ryandobal_unity

    ryandobal_unity

    Joined:
    Mar 16, 2020
    Posts:
    6
    Sorry for the late reply,
    I am on Unity version 2021.1.23f1
     
  4. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,240
    It looks like the result of the frame rate being lower on iOS compared to the editor, though I can’t say if it’s a bug or to be expected, based on the info here.

    We do have some logic to position particles in between frames, but I don’t know if it would apply here.