FunkinDroidTeam / Funkin

A rhythm game made with HaxeFlixel. Now ported into iOS and Android.
https://www.newgrounds.com/portal/view/770371
Other
24 stars 15 forks source link

Bug Report: 120hz (ProMotion) not properly working on iOS #20

Closed sayofthelor closed 2 months ago

sayofthelor commented 2 months ago

Describe the bug

On a ProMotion iOS device, the game is artificially capped to 60 FPS, causing all animations and tweens to run at half speed, since it's expecting 120 FPS.

To Reproduce

  1. Open the game on a ProMotion device (iPhone 13 Pro or above, iPad Pro)

    Expected behavior

    The game runs at or near 120 FPS

Desktop

Additional context

I'm not sure how this is intended to work, seeming as ProMotion seems to be relatively undocumented behaviour when it comes to Lime, but if needed I'm willing to help figure it out

MAJigsaw77 commented 2 months ago

By taking a look at this it seems that your display is not set to 120 fps https://github.com/FunkinDroidTeam/Funkin/blob/c4f4e2d1868d4f718b114df4a20a0c263d1fc2c4/source/Main.hx#L129

zacksgamerz commented 2 months ago

Closing as it seems to work as intended