Play faster and longer: How Square Enix maximized Android* performance and battery life with Hitman:Go

978 views

Published on

It’s important for developers to deliver the best possible performance and power efficiency for their Android games. With the addition of native x86 Android support in Unity*, Square Enix was able to take advantage of the new feature with their popular title “Hitman GO”—one of the first games published with x86 Android native support developed with Unity. In this session we will discuss how Hitman GO’s “design by constraints” philosophy allowed the developers to deliver a polished, high-end experience to mobile devices. We will then walk the audience through adding x86 support to a previously ARM*-only project. Finally, we will show how to use Intel® Graphics Performance Analyzers toolset to provide the best possible user experience, ensuring that users on the top tablet silicon achieve the highest power and performance. Developers will come out of this presentation with new insights about the Android ecosystem and tools/techniques to optimize their apps to provide a better experience on all levels of hardware to reach as many end users as possible.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
978
On SlideShare
0
From Embeds
0
Number of Embeds
27
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Play faster and longer: How Square Enix maximized Android* performance and battery life with Hitman:Go

  1. 1. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. Cristiano Ferreira, Intel Francis Pétrin, Square Enix Montréal March 03, 2015 Play Faster and Longer: How Square- Enix Montréal Maximized Android Performance and Battery Life with Hitman GO
  2. 2. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others.  Copyright © 2015 Intel Corporation. All rights reserved.  *Other names and brands may be claimed as the property of others.  INFORMATION IN THIS DOCUMENT IS PROVIDED IN CONNECTION WITH INTEL PRODUCTS. NO LICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, TO ANY INTELLECTUAL PROPERTY RIGHTS IS GRANTED BY THIS DOCUMENT. EXCEPT AS PROVIDED IN INTEL'S TERMS AND CONDITIONS OF SALE FOR SUCH PRODUCTS, INTEL ASSUMES NO LIABILITY WHATSOEVER AND INTEL DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY, RELATING TO SALE AND/OR USE OF INTEL PRODUCTS INCLUDING LIABILITY OR WARRANTIES RELATING TO FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.  A "Mission Critical Application" is any application in which failure of the Intel Product could result, directly or indirectly, in personal injury or death. SHOULD YOU PURCHASE OR USE INTEL'S PRODUCTS FOR ANY SUCH MISSION CRITICAL APPLICATION, YOU SHALL INDEMNIFY AND HOLD INTEL AND ITS SUBSIDIARIES, SUBCONTRACTORS AND AFFILIATES, AND THE DIRECTORS, OFFICERS, AND EMPLOYEES OF EACH, HARMLESS AGAINST ALL CLAIMS COSTS, DAMAGES, AND EXPENSES AND REASONABLE ATTORNEYS' FEES ARISING OUT OF, DIRECTLY OR INDIRECTLY, ANY CLAIM OF PRODUCT LIABILITY, PERSONAL INJURY, OR DEATH ARISING IN ANY WAY OUT OF SUCH MISSION CRITICAL APPLICATION, WHETHER OR NOT INTEL OR ITS SUBCONTRACTOR WAS NEGLIGENT IN THE DESIGN, MANUFACTURE, OR WARNING OF THE INTEL PRODUCT OR ANY OF ITS PARTS.  Intel may make changes to specifications and product descriptions at any time, without notice.  All products, dates, and figures specified are preliminary based on current expectations, and are subject to change without notice.  Intel processors, chipsets, and desktop boards may contain design defects or errors known as errata, which may cause the product to deviate from published specifications. Current characterized errata are available on request.  Any code names featured are used internally within Intel to identify products that are in development and not yet publicly announced for release. Customers, licensees and other third parties are not authorized by Intel to use code names in advertising, promotion or marketing of any product or services and any such use of Intel's internal code names is at the sole risk of the user.  Intel product plans in this presentation do not constitute Intel plan of record product roadmaps. Please contact your Intel representative to obtain Intel’s current plan of record product roadmaps.  Performance claims: Software and workloads used in performance tests may have been optimized for performance only on Intel® microprocessors. Performance tests, such as SYSmark and MobileMark, are measured using specific computer systems, components, software, operations and functions. Any change to any of those factors may cause the results to vary. You should consult other information and performance tests to assist you in fully evaluating your contemplated purchases, including the performance of that product when combined with other products. For more information go to http://www.Intel.com/performance  Iris™ graphics is available on select systems. Consult your system manufacturer.  Intel, Intel Inside, the Intel logo, Intel Core and Iris are trademarks of Intel Corporation in the United States and other countries. Legal
  3. 3. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others.Xbox 360 – Playstation 3 Army of Two: The Devil’s Cartel Source: Gamespot
  4. 4. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. Hitman GO iOS + Android: 7000+ devices
  5. 5. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. Trailer
  6. 6. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others.Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. Hitman GO Editor’s choice: iOS App Store Google Play
  7. 7. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others.Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. Hitman GO
  8. 8. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others.Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. Hitman GO
  9. 9. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others.Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. Established 2011 Mandate: Create the next installment in the Hitman franchise Plot twist: Switched to mobile development in 2013 Square Enix Montréal
  10. 10. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others.Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. Engine Selection
  11. 11. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others.Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. Iteration time Multi-platform Community support Experience Engine Selection
  12. 12. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. Technical challenges Asset creation Multi-platform development
  13. 13. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. Asset creation Asset creation
  14. 14. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others.Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. Asset creation Missing picture (HMA model)
  15. 15. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others.Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others.  Static lighting 1. Baked lightmaps 2. Quads for shadows  Merged geometry  Limiting post-process effects  Drawcalls, drawcalls, drawcalls Optimizations
  16. 16. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others.Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. Level creation process
  17. 17. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others.Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. Level creation process
  18. 18. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others.Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. Pros:  Allowing designers to author levels  Parallelizing art production Cons:  A lot of waste! Only used around 35% of all assets  Multiple steps to support lightmaps Level creation process
  19. 19. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. Technical challenges Multi-platform development
  20. 20. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others.Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. Don’t tunnel vision your main SKU! Abstract early and often!  First party authentication  Achievements, leaderboards  Cloud save Multi-platform development
  21. 21. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others.Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. Design your interfaces with change in mind Performance and memory limitations  Low and high resolution configuration Multi-platform development
  22. 22. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others.Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. Leverage your tech Multi-platform development
  23. 23. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others.Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others.  Empower your developers  Prepare for multi-platform early  Choose technology that enables you as creators Takeaways
  24. 24. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others.  x86 Devices and targeting native architecture  Live game profiling demo with free profiling tools! Topics
  25. 25. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others.  46 million Intel based tablets shipped in 2014  As of Q2’14, Intel took #2 position in tablet AP MSS with 15%, behind only to Apple Bay Trail Devices
  26. 26. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others.  Intel Atom is powering the only Android TV device on the market Nexus Player + x86
  27. 27. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. Partnerships with Industry Leaders
  28. 28. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others.  Free with all versions of Unity  Unity did all of the hard work  By default, Unity will generate a ‘FAT APK’ that supports both ARMv7 and x86 devices Full Unity support for x86 Android in 4.6
  29. 29. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. Adding x86 support is a small increase to the APK size Binary Type Angry Bots APK Size x86 or ARM 24.5 MB FAT (x86 and ARM) 31.5 MB
  30. 30. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. Targeting the correct hardware  Angry Bots on an Android x86 device: ARM version x86 version Diff FPS 35 46 31% CPU Load Per Frame .71% .48% 48% Power Per Frame 28 mA / Frame 19 mA / Frame 46%
  31. 31. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. Targeting the correct hardware  Hitman GO on an Android x86 device: ARM version x86 version Diff FPS 53.3 60 14.6% CPU Load Per Frame 0.4% 0.3% 21.5% Power Per Frame 16.5 mA / Frame 15.6 mA / Frame 6.3%
  32. 32. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. Targeting the correct hardware is important  School of Dragons on an Android x86 device: ARM version x86 version Diff FPS 17 43 146% CPU Load Per Frame 2.1% 1.1% 87.6% Power Per Frame 56.9 mA / Frame 30.2 mA / Frame 88.1%
  33. 33. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. If creating a standard Android project • Add x86 as a build target in the Application.mk file in the jni directory.
  34. 34. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others. Live Demo
  35. 35. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others.  Many new devices and customers!  Hitman GO! is awesome and you should get it now!  Get the tools (URLs are coming – get ready!) Summary
  36. 36. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others.  @Cristianohh – DM / Tweet at me – I’ll lend help and profile your app!  Meet up! – Unity Game Programming and Profiling - End of west bridge  Graphics Performance Analyzer / Samples! Target x86 today!
  37. 37. C o p y r i g h t © 2 0 1 5 , I n t e l C o r p o r a t i o n . A l l r i g h t s r e s e r v e d . *O t h e r n a me s a n d b r a n d s ma y b e c l a i me d a s t h e p r o p e r t y o f o t h e r s .
  38. 38. Copyright © 2015, Intel Corporation. All rights reserved. *Other names and brands may be claimed as the property of others.  Fastest Android Emulator Intel HAXM

×