首先Unity里
Application.targetFrameRate需要先设置好
XCode设置
1. info.plist 设置
CADisableMinimumFrameDurationOnPhone 设置为 YES
CADisableMinimumFrameDuration 设置为 YES
2. UnityAppController+Rendering 代码设置
将 ENABLE_DISPLAY_LINK_PAUSING 宏设置为 1
将 ENABLE_RUNLOOP_ACCEPT_INPUT 宏设置为 1

截屏2023-12-27 10.40.54.png