Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by Mazapy · Mar 10, 2018 at 01:27 AM · iosrenderingperformancebrightness

20 Fps drop on iOS when lowering brightness value using system Control Center

It happens always under OpenGL ES2, using Metal rendering works fine. It also happens using the post-processing stack (no matter the graphics API). I'm not sure what I'm talking about, but maybe is it related to the use of Shader Model 3? Everything looks equal in the profiler, just the cpu and gpu ms increases.

Thanks in advance.

Hardware iPhone X

Software iOS 11.2 Unity 2017.3.1 XCode 9.2

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
3

Answer by Mazapy · Mar 23, 2018 at 03:25 AM

Yes! I found a solution! It looks like the iPhone goes to some kind of low energy mode. So I thought of something that maybe could work to "wake-up" the view again.

In the Xcode project, go to the UnityAppController.mm file, find the applicationDidBecomeActive function and add this line:

_unityView.alpha = 0.99f;

This wake ups the view again when you comeback to the application!
No more 40fps at low brightness! BUT you have to add that line every time you built your application.

Best regards!

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Sailendu · Mar 23, 2018 at 09:48 AM 0
Share

Thank you very much for sharing the solution. it worked for me. I added the line at the end of the applicationDidBecomeActive function, is that correct? Or should I add it inside the if-else statement?

avatar image alexidr · Feb 19, 2019 at 09:29 PM 0
Share

As it doesn't seem like a common problem (couldn't really find anything), but I still can relate with my game. There should be a reason why it happened to our games but not other. Did anyone figure out the actual reason for this?

avatar image FIFTYTWO · Dec 14, 2020 at 04:39 PM 0
Share

$$anonymous$$any thanks for this workaround!

It looks like this issue appeared for us after adding a native Game Center Access Point. $$anonymous$$aybe Unity should handle something with native UI windows. The other thing is that it reproduces on iPhone 12 and 12 $$anonymous$$ini, but everything is great on iPhone XR.

avatar image
0

Answer by Sailendu · Mar 22, 2018 at 04:40 PM

I am also having this issue, my specs are also very same: iPhone X, iOS: 11.2.6, Unity: 2017.3.1p4, XCode: 9.2

The framerate drops suddenly after changing the device volume or using the Control Center. Then sometimes the fps comes back to normal after some seconds. But sometimes the fps stays very low till the end. Did you find any solution?

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

179 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Poor playtest performance in Unity on Mac after switching platform to iOS 0 Answers

Mac os unity iOS build Pink Screen Error 7 Answers

UI shows performance drop on iOS but not on Android 1 Answer

Optimization Help Please? 1 Answer

IOS does not render `fade` rendering mode 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges