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. Dismiss Notice

Iphone 4 (Some Images Black Squares)

Discussion in 'iOS and tvOS' started by MrEsquire, Feb 27, 2015.

  1. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    Since the latest Unity updates, I'm getting poor performance on iPhone 4 and now to make things worse I get black square for some images:

    Setting:

    Sprite (2D and UI)
    No Mip Maps
    Max Size 4096
    Format Compressed
    Compression Best

    4096x4096 RGBA Compressed PVRTC 4 bit

    Not sure whats changed as this worked before, tested on 4.6.3

    Anyone else have same issue?
     
  2. larku

    larku

    Joined:
    Mar 14, 2013
    Posts:
    1,422
  3. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    Thanks for the response, but I have one build for all iPhone devices?
    So how do I overcome this issue?, my graphics settings are Automatic mode.
     
  4. larku

    larku

    Joined:
    Mar 14, 2013
    Posts:
    1,422
    I'm not sure if Unity has a specific way to handle this, but when targeting mobile I stick with 2048x2048 max just to be safe.
     
  5. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    Cool will keep this in mind in the next update release I do.
     
  6. Moonjump

    Moonjump

    Joined:
    Apr 15, 2010
    Posts:
    2,571
    You could have a 2048x2048 texture as default, which switches to 4096x4096 if a supported device is detected in Start.
     
    MrEsquire likes this.
  7. larku

    larku

    Joined:
    Mar 14, 2013
    Posts:
    1,422
    Hey @moonjump are you saying Unity provides this feature or are you saying to manually switch textures if the device supports larger textures?
     
  8. Moonjump

    Moonjump

    Joined:
    Apr 15, 2010
    Posts:
    2,571
    I'm saying manually. Check against iPhoneGeneration in the Awake function. Then change the texture in the Material.
     
    theANMATOR2b likes this.