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

Reducing resolution while maintaining fullscreen not working on Lumia930

Discussion in 'Windows' started by Xephon, Dec 21, 2015.

  1. Xephon

    Xephon

    Joined:
    Dec 21, 2015
    Posts:
    4
    Hi all,

    The Lumia 930 has a full HD screen. I'm trying to reduce the game resolution to see the impact on performance. My game runs on portrait mode only.

    When I use:

    Code (CSharp):
    1. Screen.SetResolution(720, 1280, false);
    the game works fine in a smaller resolution and not full screen,

    When i change the code to:

    Code (CSharp):
    1. Screen.SetResolution(720, 1280, false);
    A weird effect is seen on the screen:

    http://1drv.ms/1OFTowP

    If you resize it, the screen actually reads something liked "development build" in reverse and scaled to full screen.

    I've tried this on multiple resolutions and I keep getting this effect whenever fullscreen is set to true.

    Other details of my set up:

    VS2015 Community
    Unity 5.3
    Build Settings set for Windows Store - Windows Phone 8.1
    Build set for Release on Device
     
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,642
    Do you get any errors in the console output?
     
  3. Xephon

    Xephon

    Joined:
    Dec 21, 2015
    Posts:
    4
    Hi, thanks for responding! No errors whatsoever.

    I even tried this :http://docs.unity3d.com/ScriptReference/Screen-resolutions.html

    and debug.log-ed the array, it was empty.

    I also tried getting screen.width and height, passing them into the setresolution function after dividing them by 2 and it failed as well. I always get the same result of the weird stretched sprite.
     
  4. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,642
    Please make a small repro case and report a bug.
     
  5. Xephon

    Xephon

    Joined:
    Dec 21, 2015
    Posts:
    4
    Sorry, I'm quite new to the forum haha. What do you mean by "repro"? Reproduction?
     
  6. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,642
    Yes, the smaller the better.
     
  7. Xephon

    Xephon

    Joined:
    Dec 21, 2015
    Posts:
    4
    Thanks, will do.