accelerate your game development on android*

24
Accelerate Your Game Development on Android* Gayathri Murali – Developer Evangelist, Intel Corporation MOBS004

Upload: intel-software

Post on 19-Jul-2015

67 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Accelerate Your Game Development on Android*

Accelerate Your Game Development on Android*

Gayathri Murali – Developer Evangelist, Intel Corporation

MOBS004

Page 2: Accelerate Your Game Development on Android*

2

• Game development landscape

• Intel INDE Media Pack

• Introducing Intel® Graphics Performance Analyzers (Intel® GPA)

• Debug: Intel GPA Frame debugger

• Profile: Intel GPA System Analyzer

• Analyze: Intel GPA System Analyzer

• Speed up your Android* Emulator: Intel® Hardware Accelerated Execution Manager (Intel® HAXM)

Agenda

Page 3: Accelerate Your Game Development on Android*

3

• Game development landscape

• Intel INDE Media Pack

Agenda

Page 4: Accelerate Your Game Development on Android*

4

Game Development Landscape

• Android* phones will reach 1.16 billion units in 2014 and 1.3 billion units in 2015 according to Gartner*

• There are more games in the Google* Play store than any other application

• With more powerful CPUs and additional RAM being added to devices, building immersive and HD games opens new doors for developer success

• Game engines aid in the process of creating compelling user experiences

Devices and game engines are evolving to provide amazing user experiences

Page 5: Accelerate Your Game Development on Android*

5

• Unreal Engine*

• Unity

• Project Anarchy* by Havok*

• Marmalade*

• App Game Kit*

• Cocos 2D*

• Candroid

• Libgdx

• Linderdaum Engine

List of Game Engines Supporting x86 Platform (Not Exhaustive)

More and more game engines are now supporting x86

Page 6: Accelerate Your Game Development on Android*

6

Mobile Game Development Tools

• Other than the game engines there are other great tools that helps in faster and efficient game development

• Tools help during different aspects of game development such as scalability, monetization, profiling and debugging, Audio creation and Emulation

• Intel offers some great tools that accelerate certain aspects of game development and help developers in making sure their game is highly optimized by profiling, analyzing and debugging them.

Page 7: Accelerate Your Game Development on Android*

7

• Game development landscape

• Intel INDE Media Pack

Agenda

Page 8: Accelerate Your Game Development on Android*

88

Intel INDE – Media Pack

iOS

*

Android* WinRT*

Page 9: Accelerate Your Game Development on Android*

9

Why do developers like to record their video games?

• Let gamers to share their videos with friends on social networks

• Make a video demonstrations for reviews, stores

• Share hints and walkthroughs

Page 10: Accelerate Your Game Development on Android*

10

Video capturing using Android Media Framework

• Create and configure MediaCodec, initialize video format

• Create and configure MediaCodec input surface

• Create wrapper to manage OpenGL context for surface

• Create and configure MediaMuxer

• Initialize and capturing pipeline in a thread

• In a loop

• Capture frame to MediaCodec surface

• Encode frame to a buffer

• Pass buffer to MediaMuxer, write each frame

• Release all allocated recources

Page 11: Accelerate Your Game Development on Android*

11

Video capturing with MediaPack

• Setup video format, output file name

• Initialize GLCapture

• Configure the capturing surface

• Call start(), stop() to begin, finish capturing process

• Capture each frame inside a render loop by calling beginCaptureFrame(), endCaptureFrame()

Page 12: Accelerate Your Game Development on Android*

12

• Intel INDE Media Pack

• Introducing Intel® Graphics Performance Analyzers (Intel® GPA)

Agenda

Page 13: Accelerate Your Game Development on Android*

13

• Suite of tools for graphics analysis and optimization that can help you make games and other graphics-intensive applications run even faster

Intel® Graphics Performance Analyzers (Intel® GPA)

Live metric analysisFrame

performance

CPU/GPU tracing

Frame debugging

Intel® Atom™ Z36XXX/Z37XXX,

Z25XX, Z24XX series

An

dro

id*

Select 3rd Party ARM

Devices

GPU Metrics Available on Select PowerVR*-based devices

✓✓

Intel Processor Graphics,

Nvidia*/AMD*

Win

do

ws*

DirectX* 9.0c, 10, 10.1, 11.0

Page 14: Accelerate Your Game Development on Android*

14

Intel® Graphics Performance Analyzers ComponentsPerformance & Debugging

GPU-bound

Use System Analyzer

Use Frame AnalyzerUse Platform Analyzer

Use Frame Debugger

CPU-bound

Page 15: Accelerate Your Game Development on Android*

15

• Intel® Graphics Performance Analyzers (Intel® GPA) System Analyzer- Intel GPA System Analyzer provides OpenGL* ES API, CPU, and GPU performance

metrics

• Intel GPA Frame Analyzer- Intel GPA Frame Analyzer allows deep analysis of frames captured from System

Analyzer

- Optimization tool for Microsoft* DirectX* and OpenGL* ES workloads

• Intel GPA Platform Analyzer- VSync markers to see how game rendering is aligned with VSync events

- Use new CPU context switches to check CPU threads execution over time: see when a thread is active and when it is waiting for a synchronization object

• Intel GPA Frame Debugger- Create and explore frame captures for errors and “what if” experiments

Intel® Graphics Performance Analyzers (Intel® GPA) – Android* Features

Tools designed for aiding in debugging and optimizing performance

Page 16: Accelerate Your Game Development on Android*

16

• System requirements:- Your ARM*-based device runs Android* 4.0, 4.1, 4.2, 4.3, or 4.4

- Your analysis system is 64-bit and runs Windows* 7 SP1/8/8.1 OS

- Your Android application uses OpenGL* ES 1.0, 1.1, or 2.0. Support for 3.0 and 3.1is WIP

• Benefit from following features- System Analysis

- Asset Inspection

- Debugging

Using Intel® Graphics Performance Analyzers with ARM* Devices

Intel® Graphics Performance Analyzers now support select ARM devices!

Page 17: Accelerate Your Game Development on Android*

17

Scenarios Where Frame Debugger Helps

• Quickly identify geometry that has been clipped due to residing outside the viewport, where a user may have thought it would be in view

• Identify problems related to state settings that can affect final rendering output and toggle settings to re-render the draw call

• Edit and change shaders that may have produced an undesirable affect or to experiment with different effects without launching the game

• Frame Debugger allows for playback on an emulator or the actual device in order to identify differences in final color outputs or artifacts seen on certain devices

• Provides an equal experience across both Intel devices, the emulator, and a range of 3rd

party ARM* based devices

Page 18: Accelerate Your Game Development on Android*

18

Demonstration

Page 19: Accelerate Your Game Development on Android*

19

• Intel® Graphics Performance Analyzers (Intel® GPA) tools support Intel Android* devices without requiring a rooted device

• Intel GPA tools support select 3rd party ARM* devices with Frame Debugger and select 3rd party ARM+PowerVR* devices with System Analyzer

• Intel GPA tools support retail Intel devices without requiring reference design tablets or specific builds of Android. The default off-the-shelf device should just work.

• It’s free (as of now)

Why use Intel® Graphics Performance Analyzers?

Page 20: Accelerate Your Game Development on Android*

20

• Game engines help in creating immersive and compelling user experiences

• Intel offers a toolset to profile and optimize games for different platforms

• Introduction to ART 64 and availability of 64 bit devices from Intel make gaming experience very fluid

Summary

Page 21: Accelerate Your Game Development on Android*

21

• Download Intel® Graphics Performance Analyzers (Intel® GPA) today and give it a try!

• Tools, articles, and tech samples available at the Intel® Visual Computing Source

- http://software.intel.com/vcsource/tools/intel-gpa

Call to Action

Page 22: Accelerate Your Game Development on Android*

22

A PDF of this presentation is available from our Technical Session Catalog: www.intel.com/idfsessionsSF. This URL is also printed on the top of Session Agenda Pages in the Pocket Guide.

Additional Sources of Information

Poster Chats

Title Day Time Location

SFTC001Poster Chat: Code Faster with Intel® Parallel Studio XE 2015 Software Development Tool Editions

Wed 3-5pm Intel Software and Services

PavilionStation 1

SFTC002 Poster Chat: Intel® System Studio -Create Reliable and Consistently Performing System Software on Android* and Internet of Things Platforms

Wed 5-7pm Intel Software and Services

PavilionStation 1

Page 23: Accelerate Your Game Development on Android*

23

Legal DisclaimerINFORMATION 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. Designers must not rely on the absence or characteristics of any features or instructions marked "reserved" or "undefined". Intel reserves these for future definition and shall have no responsibility whatsoever for conflicts or incompatibilities arising from future changes to them. The information here is subject to change without notice. Do not finalize a design with this information.The products described in this document 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.Contact your local Intel sales office or your distributor to obtain the latest specifications and before placing your product order.Copies of documents which have an order number and are referenced in this document, or other Intel literature, may be obtained by calling 1-800-548-4725, or go to: http://www.intel.com/design/literature.htm

Intel, Atom Look Inside and the Intel logo are trademarks of Intel Corporation in the United States and other countries.

*Other names and brands may be claimed as the property of others.Copyright ©2014 Intel Corporation.

Page 24: Accelerate Your Game Development on Android*

24

Risk FactorsThe above statements and any others in this document that refer to plans and expectations for the second quarter, the year and the future are forward-looking statements that involve a number of risks and uncertainties. Words such as “anticipates,” “expects,” “intends,” “plans,” “believes,” “seeks,” “estimates,” “may,” “will,” “should” and their variations identify forward-looking statements. Statements that refer to or are based on projections, uncertain events or assumptions also identify forward-looking statements. Many factors could affect Intel’s actual results, and variances from Intel’s current expectations regarding such factors could cause actual results to differ materially from those expressed in these forward-looking statements. Intel presently considers the following to be important factors that could cause actual results to differ materially from the company’s expectations. Demand for Intel's products is highly variable and, in recent years, Intel has experienced declining orders in the traditional PC market segment. Demand could be different from Intel's expectations due to factors including changes in business and economic conditions; consumer confidence or income levels; customer acceptance of Intel’s and competitors’ products; competitive and pricing pressures, including actions taken by competitors; supply constraints and other disruptions affecting customers; changes in customer order patterns including order cancellations; and changes in the level of inventory at customers. Intel operates in highly competitive industries and its operations have high costs that are either fixed or difficult to reduce in the short term. Intel's gross margin percentage could vary significantly from expectations based on capacity utilization; variations in inventory valuation, including variations related to the timing of qualifying products for sale; changes in revenue levels; segment product mix; the timing and execution of the manufacturing ramp and associated costs; excess or obsolete inventory; changes in unit costs; defects or disruptions in the supply of materials or resources; and product manufacturing quality/yields. Variations in gross margin may also be caused by the timing of Intel product introductions and related expenses, including marketing expenses, and Intel's ability to respond quickly to technological developments and to introduce new products or incorporate new features into existing products, which may result in restructuring and asset impairment charges. Intel's results could be affected by adverse economic, social, political and physical/infrastructure conditions in countries where Intel, its customers or its suppliers operate, including military conflict and other security risks, natural disasters, infrastructure disruptions, health concerns and fluctuations in currency exchange rates. Intel’s results could be affected by the timing of closing of acquisitions, divestitures and other significant transactions. Intel's results could be affected by adverse effects associated with product defects and errata (deviations from published specifications), and by litigation or regulatory matters involving intellectual property, stockholder, consumer, antitrust, disclosure and other issues, such as the litigation and regulatory matters described in Intel's SEC filings. An unfavorable ruling could include monetary damages or an injunction prohibiting Intel from manufacturing or selling one or more products, precluding particular business practices, impacting Intel’s ability to design its products, or requiring other remedies such as compulsory licensing of intellectual property. A detailed discussion of these and other factors that could affect Intel’s results is included in Intel’s SEC filings, including the company’s most recent reports on Form 10-Q, Form 10-K and earnings release.

Rev. 4/15/14