I have an aesthetic UI element, a reflection, that works well on the iPhone 3Gs and iPod Touches, but is too slow on the 3G and prior. How best can I detect CPU speed so I can disable this function?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What I ended up doing was to time one iteration of my “slow” routine. If it takes more than 0.5 seconds, I decide that the CPU is too slow and I turn it off.
In order to make the UI not confusing, I add a preference to toggle that routine, and if I turn it off, and the user selects, I display a message saying that the “feature” is CPU intensive and may some aspects of the application seem sluggish, and they may wish to leave it off. If they turn it on anyway, that is their choice. I will run this by my beta testers to see if I am making it too confusing.
Next step is optimization, but so far, I have not been able to make it much faster.