Погружение в глубины черной бездны с intel gpa

24
Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners. Погружение в глубины черной бездны с Intel® GPA Павел Головинский, Евгений Городецкий, Intel Константин Попов, Biart КРИ 2012 1

Upload: evgeny-gorodetsky

Post on 05-Dec-2014

1.161 views

Category:

Technology


1 download

DESCRIPTION

Доклад был сделан на Конференции Разработчиков Игр - КРИ 2012 в Москве. Оптимизация высококачественных игр под современные мобильные платформы, такие как планшеты и ультрабуки, по-прежнему является непростой задачей. На примере игры Deep Black студии Biart мы покажем вам черные бездны графических bottleneck’ов, и вы узнаете, как победить в битве за производительность. Также мы расскажем о новых возможностях пакета Intel Graphics Performance Analyzers 2012, включая оптимизацию игр под Android.

TRANSCRIPT

Page 1: Погружение в глубины черной бездны с Intel GPA

Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners.

Погружение в глубины черной бездны с Intel® GPA

Павел Головинский, Евгений Городецкий, Intel

Константин Попов, Biart

КРИ 2012 1

Page 2: Погружение в глубины черной бездны с Intel GPA

Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners.

План доклада

2

Page 3: Погружение в глубины черной бездны с Intel GPA

Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners.

Intel® Graphics Performance Analyzers (Intel® GPA)

• Инструментарий анализа производительности графических приложений

• DirectX* 9, 10, 10.1, 11

• Windows 7, 8 (32/64-bit)

• Доступен бесплатно:

www.intel.com/software/gpa

3

Page 4: Погружение в глубины черной бездны с Intel GPA

Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners.

Анализ приложения с Intel® GPA

4

GPA Frame Analyzer

Покадровый анализ на GPU

Игра с GPA HUD / System Analyzer

Анализ поведения игры в реальном времени

Parallel Studio XE /

GPA Platform Analyzer

Анализ выполнения задач на CPU

Ограничена GPU

Запуск игры

Ограничена CPU

Page 5: Погружение в глубины черной бездны с Intel GPA

Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners.

Intel® GPA 2012

• Новый System Analyzer

• Поддержка Android* на Atom (NDA)

• Метрики потребления энергии

• Улучшения в Platform и Frame Analyzer

• Теперь доступен на Intel® Visual Computing Source:

http://www.intel.com/software/vcsource

• Новый релиз GPA 2012 R3 на следующей неделе!

5

Page 6: Погружение в глубины черной бездны с Intel GPA

Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners.

System Analyzer • Рабочая ОС: Windows, Ubuntu**

• Целевая ОС: Windows, Android**

• Подключение – К системе в целом

– К не инструментированным приложениям без исходного кода

– К приложениям на мобильном устройстве Intel x86 под ОС Android*

• Общая информация о приложении

• Анализ программных и аппаратных метрик

• Проведение графических экспериментов

• Управление – Экспорт метрик в CSV

– Захват текущего кадра или трассы для детального анализа

– Пауза приложения и покадровое переключение кадров

** NDA – доступ по договору о неразглашении

6

Высокоуровневый анализ приложения

Page 7: Погружение в глубины черной бездны с Intel GPA

Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners.

Frame Analyzer

• Рабочая и целевая ОС: Windows* 7, 8

• Графическое API: DirectX 9, 10, 10.1, 11

• Визуализация захваченного кадра игры – Вызовы рисования, время их выполнения и результаты

– Состояние DX для каждого вызова

– Промежуточные результаты рендер-таргетов

– Используемые текстуры (сохранение DDS, просмотр Hex)

– Код и константы шейдеров (на HLSL или ассемблере)

• Эксперименты над отдельными вызовами рисования

• AdvisorBETA: Рекомендации по оптимизации кадра и отдельных вызовов

7

Низкоуровневый анализ рендеринга кадра

Page 8: Погружение в глубины черной бездны с Intel GPA

Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners.

Platform Analyzer

• Рабочая и целевая ОС: Windows* 7, 8

• Захват трассы исполнения на CPU: – Программа инструментируется разработчиком

– Intel® Instrumentation and Tracing Technology (ITT)

• Захват трассы вызовов DX на GPU: – Не требует специальной инструментации приложения

• Визуализация исполнения задач на CPU и GPU: – Параллельные задачи и зависимости

– Пользовательские события (маркеры)

• Поддержка Intel OpenCL**

** NDA – доступ по договору о неразглашении

8

Анализ параллельного исполнения задач CPU и GPU

Page 9: Погружение в глубины черной бездны с Intel GPA

Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners.

Знакомьтесь с Biart

• Независимая игровая студия (game / engine)

• Зарегистрирована в Delaware, USA c R&D офисом в Москве

• Первая игра выпущена в 2007

• Разработка движка biEngine начата в 2008

• Поддержка PC, XBox360 и PlayStation 3

• Поддержка Android / iOS в разработке

9

Page 10: Погружение в глубины черной бездны с Intel GPA

Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners.

Deep Black: Reloaded

• Подводный Sci-Fi шутер от первого лица

• Выпущена на PC в Q1 2012

• Будет выпущена на Xbox* 360 и PlayStation* 3 в 2012 издателем 505 Games

• Основана на движке biEngine

10

Page 11: Погружение в глубины черной бездны с Intel GPA

Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners.

Ultrabooks™ и Intel® HD Graphics

20% наших пользователей используют Intel ® HD Graphics! * По данным продаж Deep Black

11

Page 12: Погружение в глубины черной бездны с Intel GPA

Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners.

Оптимизация с помощью GPA

12

Обнаружены 3 основных проблемы: – Большое количество draw-вызовов

– Ограничение скоростью заполнения (shader / fill-rate)

– 3 основных полноэкранных прохода могут быть оптимизированы

Page 13: Погружение в глубины черной бездны с Intel GPA

Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners.

Оптимизация с помощью GPA

13

Решены 3 основных проблемы: – Уровни оптимизированы для использования

меньшего числа draw-вызовов

– Применен рендеринг в уменьшенном разрешении (multi-resolution rendering)

– Оптимизированы полноэкранные шейдеры

Производительность повышена более чем на 50%

Page 14: Погружение в глубины черной бездны с Intel GPA

Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners.

Оптимизация под Ultrabook™

Оптимизация энергопотребления:

– Ограничение в 30 FPS

– Использование Intel Laptop Gaming TDK

http://software.intel.com/en-us/articles/intel-laptop-gaming-technology-development-kit/

14

Page 15: Погружение в глубины черной бездны с Intel GPA

Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners.

Оптимизация под Ultrabook™

15

Исходная версия: 104 мин.

С оптимизацией: 133 мин.

+30% игрового времени на батарее

Page 16: Погружение в глубины черной бездны с Intel GPA

Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners.

Индикатор заряда батареи

16

Индикатор заряда батареи в игре

Page 17: Погружение в глубины черной бездны с Intel GPA

Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners.

ДЕМО: DEEP BLACK RELOADED

17

Page 18: Погружение в глубины черной бездны с Intel GPA

Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners.

Поддержка игр на Android* и Intel® Atom™

18

Page 19: Погружение в глубины черной бездны с Intel GPA

Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners.

Анализ метрик приложения на Android*

• CPU Load & Frequency

• Memory Bus Load

• Disk IO Activity

• GPU

– GPU Load & Frequency

– Texture Unit Load

– Parameter Buffer (PB) Throughput

– Image Synthesis Processor (ISP) Load

– Texture & Shading Processor (TSP) Load

– Universal Scalable Shader Engine (USSE) Throughput & Load

19

• OpenGL API-call counters

– Buffer Creations

– Draw Calls

– Error Gets

– RT Changes & Clears

– Frame Time & FPS

• Power – Charging

– Discharging

Page 20: Погружение в глубины черной бездны с Intel GPA

Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners.

Рендеринг без изменений

Отключение Z-теста

Отключение Alpha-блендинга

Текстуры 2x2

Полигональная сетка

Простейший фрагментный шейдер

Рисование единственного пиксела

Отключение вызовов рисования

Графические эксперименты на Android*

20

Page 21: Погружение в глубины черной бездны с Intel GPA

Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners.

ДЕМО: ASPHALT 6 НА ANDROID

21

Page 22: Погружение в глубины черной бездны с Intel GPA

Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners.

Заключение

• Мощные инструменты анализа производительности ваших игр: – System Analyzer / HUD

– Frame Analyzer

– Platform Analyzer

• Инструменты оптимизации игр под Андроид – Доступ по специальному соглашению компании разработчика с Intel

– Запишитесь в наш список!

• Оптимизируйте игры на платформах Intel для более долгой работы от батареи на мобильных платформах и Intel Ultrabook

• Загрузите последнюю версию Intel GPA:

www.intel.com/software/gpa

22

Page 23: Погружение в глубины черной бездны с Intel GPA

Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners. 23

Page 24: Погружение в глубины черной бездны с Intel GPA

Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners.

Optimization Notice

Intel’s compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that

are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and

other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on

microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended

for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for

Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information

regarding the specific instruction sets covered by this notice.

Notice revision #20110804

24