Created
August 12, 2018 05:36
-
-
Save marchbold/7f69d108757d6ec9ce6e24471b3fc84d to your computer and use it in GitHub Desktop.
Performance tuning using the Year Class from the Application ANE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var year:int = Application.service.device.yearClass; | |
| if (year >= 2013) | |
| { | |
| // Do advanced animation | |
| } | |
| else if (year > 2010) | |
| { | |
| // Do simple animation | |
| } | |
| else | |
| { | |
| // Phone too slow, don't do any animations | |
| } | |
| // com.distriqt.Application |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment