Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question How to properly choose pixels per unit values for a 2D game sprites?

Discussion in 'General Graphics' started by SMT5015, Feb 10, 2023.

  1. SMT5015

    SMT5015

    Joined:
    Apr 5, 2021
    Posts:
    53
    So, basically, everything is made of sprites, and they are at a certain, constant distance from camera. They are of all sizes, small effects and characters, terrain and huge backgrounds. And there are a lot of them at once, of course. How should I balance between quality and performance/asset sizes?
    • What exactly would happen with the image if sprites are stretched or compressed too much? How do they lose details/get pixelated/whatever?
    • How does the optimal value depend on (perspective) camera distance and field of view? Are there any calculated recomendations, or I should just try and test for myself?
    • How much do pixels per unit affect performance? At what point should I care about this factor?
    • If needed to sacrifice quality, where would it do the least harm?