Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check if device is *fast* enough

I can't find any better wording to my question.

At some point inside my app I have set up some pretty intensive animation. Thing is, on high-end devices the animation runs smoothly and is pleasant to the eye. On the other hand, one low-end device I tested had a pretty bad performance while animating.

Trying to put user experience first, I'd like to run this stuff on devices that are computationally sufficient, and somehow "turn it off" on other devices.

I have thought for a while on how to discriminate between devices. The only thing that comes to my mind is API level: considering the platform fragmentation and manufacturers delays, I believe there should be some kind of correlation between API level and performance. But there might be something better.

Do you have any idea?

Just to clarify, the animation is not something I can lighten or simplify in any way (e.g., using smaller size drawables, worse quality bitmaps, .... ). It's mainly measuring and layout stuff.

Please feel free to edit the tags I chose.

like image 901
natario Avatar asked Nov 08 '22 23:11

natario


1 Answers

The first time your app runs, you could run some kind of micro-benchmark that would measure the CPU performance for no more than a second or two. I would suggest not disabling the animations automatically, but warn the user if the device seems slow and ask if they'd like to disable them.

like image 101
Kevin Krumwiede Avatar answered Nov 15 '22 05:11

Kevin Krumwiede