Search Unity

FrameTimingManager.GetCpuTimerFrequency returned 0

Discussion in 'Android' started by YukiMiyatake, Oct 29, 2018.

  1. YukiMiyatake

    YukiMiyatake

    Joined:
    Oct 22, 2018
    Posts:
    1
    FrameTimingManager.GetCpuTimerFrequency returned 0

    UNITY 2018.3.0b6
    Android vulkan
    Galaxy S9
     
  2. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,014
  3. YukiMiyatake-murasame-lab

    YukiMiyatake-murasame-lab

    Joined:
    Jun 12, 2013
    Posts:
    1
    Thank you.
    When does it support ?
     
  4. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,014
    I just checked, it should be supported in 2018.3.
    Please report a bug :)
     
  5. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,014
    Hi!
    I double-checked this and the information I provided earlier was wrong. FrameTimingManager is at the moment supported only on PS4, XBox One and Switch.
    Sorry for this.
     
  6. kookyoo

    kookyoo

    Joined:
    Apr 19, 2010
    Posts:
    53
    Hi,
    Is FrameTiming system planned to work on PC and mobile later ?
     
    AnomalusUndrdog likes this.
  7. Stormy102

    Stormy102

    Joined:
    Jan 17, 2014
    Posts:
    495
    +1 for this
     
  8. flashframe

    flashframe

    Joined:
    Feb 10, 2015
    Posts:
    797
    @aleksandrk

    I've been searching everywhere but can't find the information on what platforms currently support FrameTimingManager. Can we use it on tvOS and iOS yet?

    Thanks!
     
  9. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,014
    @flashframe It looks like it's supported on Metal. I suppose this depends on the Unity version you're using :)
     
  10. flashframe

    flashframe

    Joined:
    Feb 10, 2015
    Posts:
    797
    Oh good point, sorry!

    I’m on 2018.4

    Thank you :)
     
  11. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,014
    It should work there :)
     
  12. flashframe

    flashframe

    Joined:
    Feb 10, 2015
    Posts:
    797
    Thanks again! Would be great if the documentation included the info, but appreciate there’s a lot of versions of the docs. Thanks for your help :)
     
    aleksandrk likes this.
  13. chris73it

    chris73it

    Joined:
    Oct 15, 2013
    Posts:
    21
    Hi,

    When will Unity add support for Dynamic Resolution on PCs?

    Thank you!
     
  14. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,014
  15. WayneLJ

    WayneLJ

    Joined:
    Aug 6, 2015
    Posts:
    12
    hi @aleksandrk
    According to the official sample test, the m_gpuFrameTime value is always zero
    https://docs.unity3d.com/Manual/DynamicResolution.html
    Please give me a hand,Where did I go wrong?
    Unity Version 2019.1.10f1
    ProjectSetting>Player>Check Enable Frame Timing Stats
    Camera>Check Allow Dynamic Resolution
    build standalone version, PC Direct12
     
  16. WayneLJ

    WayneLJ

    Joined:
    Aug 6, 2015
    Posts:
    12
    Screen
     

    Attached Files:

  17. WayneLJ

    WayneLJ

    Joined:
    Aug 6, 2015
    Posts:
    12
    Supported platforms
    Unity supports dynamic resolution on Xbox One
    , PS4, Nintendo Switch, iOS
    , macOS and tvOS (Metal only), Android (Vulkan only), Windows Standalone and UWP (DirectX 12 only).
     
    xujinm likes this.
  18. flashframe

    flashframe

    Joined:
    Feb 10, 2015
    Posts:
    797
    I know that for iOS & tvOS in 2018, you have to "enable frame timing stats" in the player settings. Maybe you have to do that for standalone in 2019?
     
  19. WayneLJ

    WayneLJ

    Joined:
    Aug 6, 2015
    Posts:
    12
    @flashframe
    Thank you!
    I'll try the following settings, but I can't.
    the m_gpuFrameTime value is always zero

    Unity Version 2019.1.10f1
    ProjectSetting>Player>Check Enable Frame Timing Stats
    Camera>Check Allow Dynamic Resolution
    build standalone version, PC DirectX12

    Please give me a hand,Where did I go wrong?
     
  20. WayneLJ

    WayneLJ

    Joined:
    Aug 6, 2015
    Posts:
    12