Planned maintenance
A system upgrade is planned for 13/12-2023, at 12:00-13:00. During this time DiVA will be unavailable.
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
DirectX12: A Resource Heap Type Copying Time Analysis
2020 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE creditsStudent thesis
Abstract [en]

Background The API DirectX 12 allows programmers to have more control over the GPUs memory management. This includes the ability to allocate resources on different types of memory heaps. But there is a lack of research on how these heap types affect the copying performance.

Objectives The aim of this thesis is to benchmark the copying performance of the different heap types in DirectX 12 when increasing the data size. The heaps are tested with the three types of command queue that can be used to execute commands to the GPU.

Method To answer our research question, a DirectX 12 prototype was implemented and used to copy increasing amount of data between different heap types. The copy operations were also combined with three different types of command queues to see if these have any impact on the performance. The tests ran on three different Nvidia graphic cards on the same computer setup, both to validate our results but also to spot any potential differences.

Results The results from this study show that there is a difference in copying speed when copying data between resources that have been allocated on different heap types. The fastest to slowest were as follows: Default to Default, Upload to Default / Default to Readback and Upload to Readback. Using different types of command queues did not have an impact on performance with the exception of when data was copied from Default to Default on an RTX 2080. All of the tests that were carried out showed that the copying time scaled linearly with the data size.

Conclusion This study shows the importance of allocating resources on the most suitable heap as there is a difference in copying time between them. In contrast, was the choice of command queue less important as this had no impact on performance in the majority of the tests. The results also show that the copying time scales linearly with the data size.

Place, publisher, year, edition, pages
2020. , p. 24
Keywords [en]
DirectX 12, Memory management, Performance test
National Category
Computer Sciences
Identifiers
URN: urn:nbn:se:bth-20224OAI: oai:DiVA.org:bth-20224DiVA, id: diva2:1454508
Subject / course
DV1478 Bachelor Thesis in Computer Science
Educational program
DVGSP Game Programming
Supervisors
Examiners
Available from: 2020-07-21 Created: 2020-07-16 Last updated: 2020-07-21Bibliographically approved

Open Access in DiVA

DirectX12: A Resource Heap Type Copying Time Analysis(1774 kB)546 downloads
File information
File name FULLTEXT02.pdfFile size 1774 kBChecksum SHA-512
ef28ec25cf3169fd4a5491eaf0e50d90eb6ae59f741983f5b7dd5af25277bd49f22756cbc5728193cdf1bf6ad86526d01b51dfa28410250258ffda015ddc9db6
Type fulltextMimetype application/pdf

Search in DiVA

By author/editor
Törnblom, SimonHellman, Pontus
Computer Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 546 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 308 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf