Upload
evgeny-gorodetsky
View
1.151
Download
1
Embed Size (px)
DESCRIPTION
Доклад был сделан на Конференции Разработчиков Игр - КРИ 2012 в Москве. Оптимизация высококачественных игр под современные мобильные платформы, такие как планшеты и ультрабуки, по-прежнему является непростой задачей. На примере игры Deep Black студии Biart мы покажем вам черные бездны графических bottleneck’ов, и вы узнаете, как победить в битве за производительность. Также мы расскажем о новых возможностях пакета Intel Graphics Performance Analyzers 2012, включая оптимизацию игр под Android.
Citation preview
Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners.
Погружение в глубины черной бездны с Intel® GPA
Павел Головинский, Евгений Городецкий, Intel
Константин Попов, Biart
КРИ 2012 1
Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners.
План доклада
2
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
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
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
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
Высокоуровневый анализ приложения
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
Низкоуровневый анализ рендеринга кадра
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
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
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
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
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 основных полноэкранных прохода могут быть оптимизированы
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%
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
Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners.
Оптимизация под Ultrabook™
15
Исходная версия: 104 мин.
С оптимизацией: 133 мин.
+30% игрового времени на батарее
Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners.
Индикатор заряда батареи
16
Индикатор заряда батареи в игре
Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners.
ДЕМО: DEEP BLACK RELOADED
17
Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners.
Поддержка игр на Android* и Intel® Atom™
18
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
Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners.
Рендеринг без изменений
Отключение Z-теста
Отключение Alpha-блендинга
Текстуры 2x2
Полигональная сетка
Простейший фрагментный шейдер
Рисование единственного пиксела
Отключение вызовов рисования
Графические эксперименты на Android*
20
Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners.
ДЕМО: ASPHALT 6 НА ANDROID
21
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
Copyright© 2012, Intel Corporation. All rights reserved. *Other brands and names are the property of their respective owners. 23
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