Desempenho do Design Orientado a Dados com Unity DOTS
| Autor(a) principal: | |
|---|---|
| Data de Publicação: | 2023 |
| Tipo de documento: | Trabalho de conclusão de curso |
| Idioma: | por |
| Título da fonte: | Repositório Institucional da Universidade Federal do Ceará (UFC) |
| Texto Completo: | http://www.repositorio.ufc.br/handle/riufc/73708 |
Resumo: | The efficiency is an eternal quest in the world of software development, particularly in extreme scenarios such as games. Data-Oriented Design (DOD) has emerged as an alternative approach to the well-established Object-Oriented Design (OOD), providing better paths to achieve highperformance results. This work aims to compare the performance of these two approaches using Unity DOTS, which is a series of packages added to the Unity engine that enables game programming using Data-Oriented Design. Two versions of an experimental game were created, one using OOD and the other using DOD, and were subsequently subjected to tests on three PCs with varying hardware configurations. The results showed a significant performance gain with the DOD approach. However, in scenarios where the PC experiences a GPU bottleneck, the gain is limited to improved hardware utilization and does not impact the FPS (frames per second), as the frame generation is delayed by the GPU rather than CPU workload. |
| id |
UFC-7_ff3e257d913f2d4de8a4ea25703470ff |
|---|---|
| oai_identifier_str |
oai:repositorio.ufc.br:riufc/73708 |
| network_acronym_str |
UFC-7 |
| network_name_str |
Repositório Institucional da Universidade Federal do Ceará (UFC) |
| repository_id_str |
|
| spelling |
Venâncio, Marcos Vinícius de LimaJucá, Paulyne Matthews2023-07-25T16:40:11Z2023-07-25T16:40:11Z2023VENÂNCIO, Marcos Vinícius de Lima. Desempenho do Design Orientado a Dados com Unity DOTS. 2023. 56 f. Trabalho de Conclusão de Curso (Graduação em Ciência da Computação)-Universidade Federal do Ceará, Campus de Quixadá, Quixadá, 2023.http://www.repositorio.ufc.br/handle/riufc/73708The efficiency is an eternal quest in the world of software development, particularly in extreme scenarios such as games. Data-Oriented Design (DOD) has emerged as an alternative approach to the well-established Object-Oriented Design (OOD), providing better paths to achieve highperformance results. This work aims to compare the performance of these two approaches using Unity DOTS, which is a series of packages added to the Unity engine that enables game programming using Data-Oriented Design. Two versions of an experimental game were created, one using OOD and the other using DOD, and were subsequently subjected to tests on three PCs with varying hardware configurations. The results showed a significant performance gain with the DOD approach. However, in scenarios where the PC experiences a GPU bottleneck, the gain is limited to improved hardware utilization and does not impact the FPS (frames per second), as the frame generation is delayed by the GPU rather than CPU workload.A eficiência é uma busca eterna no mundo do desenvolvimento de software, principalmente em cenários extremos como o de jogos. O Design Orientado a Dados (DOD) surge como uma abordagem alternativa ao já consolidado Design Orientado a Objetos (DOO), provendo melhores caminhos para alcançar resultados de alto desempenho. Este trabalho busca comparar o desempenho dessas duas abordagens usando o Unity DOTS, que é uma série de pacotes adicionados à engine Unity que disponibilizam meios de programar jogos usando o Design Orientado a Dados. Um experimento-jogo foi criado tanto na versão DOD quanto na DOO e então submetido a vários testes em três PCs de configurações diferentes. Os resultados mostraram um ganho expressivo na abordagem DOD, entretanto em cenários onde o PC possui um gargalo na GPU, o ganho cobriu somente a eficiência de uso do hardware, não tendo impacto nos FPS (quadros por segundo), uma vez que o fluxo para a geração do frame é atrasado pela GPU, e não pela carga de trabalho na CPU.Desenvolvimento de JogosDesign Orientado a DadosDesign Orientado a ObjetosUnity DOTSDesempenhoDesempenho do Design Orientado a Dados com Unity DOTSinfo:eu-repo/semantics/publishedVersioninfo:eu-repo/semantics/bachelorThesisporreponame:Repositório Institucional da Universidade Federal do Ceará (UFC)instname:Universidade Federal do Ceará (UFC)instacron:UFCinfo:eu-repo/semantics/openAccessLICENSElicense.txtlicense.txttext/plain; charset=utf-81748http://repositorio.ufc.br/bitstream/riufc/73708/2/license.txt8a4605be74aa9ea9d79846c1fba20a33MD52ORIGINAL2023_tcc_mvlvenancio.pdf2023_tcc_mvlvenancio.pdfapplication/pdf8821962http://repositorio.ufc.br/bitstream/riufc/73708/1/2023_tcc_mvlvenancio.pdfa096486d623b5247627cc6c9d4d9b72aMD51riufc/737082023-07-25 13:40:11.195oai:repositorio.ufc.br:riufc/73708Tk9URTogUExBQ0UgWU9VUiBPV04gTElDRU5TRSBIRVJFClRoaXMgc2FtcGxlIGxpY2Vuc2UgaXMgcHJvdmlkZW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zaW9uLCBhbmQgd2lsbCBub3QgbWFrZSBhbnkgYWx0ZXJhdGlvbiwgb3RoZXIgdGhhbiBhcyBhbGxvd2VkIGJ5IHRoaXMKbGljZW5zZSwgdG8geW91ciBzdWJtaXNzaW9uLgo=Repositório InstitucionalPUBhttp://www.repositorio.ufc.br/ri-oai/requestbu@ufc.br || repositorio@ufc.bropendoar:2023-07-25T16:40:11Repositório Institucional da Universidade Federal do Ceará (UFC) - Universidade Federal do Ceará (UFC)false |
| dc.title.pt_BR.fl_str_mv |
Desempenho do Design Orientado a Dados com Unity DOTS |
| title |
Desempenho do Design Orientado a Dados com Unity DOTS |
| spellingShingle |
Desempenho do Design Orientado a Dados com Unity DOTS Venâncio, Marcos Vinícius de Lima Desenvolvimento de Jogos Design Orientado a Dados Design Orientado a Objetos Unity DOTS Desempenho |
| title_short |
Desempenho do Design Orientado a Dados com Unity DOTS |
| title_full |
Desempenho do Design Orientado a Dados com Unity DOTS |
| title_fullStr |
Desempenho do Design Orientado a Dados com Unity DOTS |
| title_full_unstemmed |
Desempenho do Design Orientado a Dados com Unity DOTS |
| title_sort |
Desempenho do Design Orientado a Dados com Unity DOTS |
| author |
Venâncio, Marcos Vinícius de Lima |
| author_facet |
Venâncio, Marcos Vinícius de Lima |
| author_role |
author |
| dc.contributor.author.fl_str_mv |
Venâncio, Marcos Vinícius de Lima |
| dc.contributor.advisor1.fl_str_mv |
Jucá, Paulyne Matthews |
| contributor_str_mv |
Jucá, Paulyne Matthews |
| dc.subject.por.fl_str_mv |
Desenvolvimento de Jogos Design Orientado a Dados Design Orientado a Objetos Unity DOTS Desempenho |
| topic |
Desenvolvimento de Jogos Design Orientado a Dados Design Orientado a Objetos Unity DOTS Desempenho |
| description |
The efficiency is an eternal quest in the world of software development, particularly in extreme scenarios such as games. Data-Oriented Design (DOD) has emerged as an alternative approach to the well-established Object-Oriented Design (OOD), providing better paths to achieve highperformance results. This work aims to compare the performance of these two approaches using Unity DOTS, which is a series of packages added to the Unity engine that enables game programming using Data-Oriented Design. Two versions of an experimental game were created, one using OOD and the other using DOD, and were subsequently subjected to tests on three PCs with varying hardware configurations. The results showed a significant performance gain with the DOD approach. However, in scenarios where the PC experiences a GPU bottleneck, the gain is limited to improved hardware utilization and does not impact the FPS (frames per second), as the frame generation is delayed by the GPU rather than CPU workload. |
| publishDate |
2023 |
| dc.date.accessioned.fl_str_mv |
2023-07-25T16:40:11Z |
| dc.date.available.fl_str_mv |
2023-07-25T16:40:11Z |
| dc.date.issued.fl_str_mv |
2023 |
| dc.type.status.fl_str_mv |
info:eu-repo/semantics/publishedVersion |
| dc.type.driver.fl_str_mv |
info:eu-repo/semantics/bachelorThesis |
| format |
bachelorThesis |
| status_str |
publishedVersion |
| dc.identifier.citation.fl_str_mv |
VENÂNCIO, Marcos Vinícius de Lima. Desempenho do Design Orientado a Dados com Unity DOTS. 2023. 56 f. Trabalho de Conclusão de Curso (Graduação em Ciência da Computação)-Universidade Federal do Ceará, Campus de Quixadá, Quixadá, 2023. |
| dc.identifier.uri.fl_str_mv |
http://www.repositorio.ufc.br/handle/riufc/73708 |
| identifier_str_mv |
VENÂNCIO, Marcos Vinícius de Lima. Desempenho do Design Orientado a Dados com Unity DOTS. 2023. 56 f. Trabalho de Conclusão de Curso (Graduação em Ciência da Computação)-Universidade Federal do Ceará, Campus de Quixadá, Quixadá, 2023. |
| url |
http://www.repositorio.ufc.br/handle/riufc/73708 |
| dc.language.iso.fl_str_mv |
por |
| language |
por |
| dc.rights.driver.fl_str_mv |
info:eu-repo/semantics/openAccess |
| eu_rights_str_mv |
openAccess |
| dc.source.none.fl_str_mv |
reponame:Repositório Institucional da Universidade Federal do Ceará (UFC) instname:Universidade Federal do Ceará (UFC) instacron:UFC |
| instname_str |
Universidade Federal do Ceará (UFC) |
| instacron_str |
UFC |
| institution |
UFC |
| reponame_str |
Repositório Institucional da Universidade Federal do Ceará (UFC) |
| collection |
Repositório Institucional da Universidade Federal do Ceará (UFC) |
| bitstream.url.fl_str_mv |
http://repositorio.ufc.br/bitstream/riufc/73708/2/license.txt http://repositorio.ufc.br/bitstream/riufc/73708/1/2023_tcc_mvlvenancio.pdf |
| bitstream.checksum.fl_str_mv |
8a4605be74aa9ea9d79846c1fba20a33 a096486d623b5247627cc6c9d4d9b72a |
| bitstream.checksumAlgorithm.fl_str_mv |
MD5 MD5 |
| repository.name.fl_str_mv |
Repositório Institucional da Universidade Federal do Ceará (UFC) - Universidade Federal do Ceará (UFC) |
| repository.mail.fl_str_mv |
bu@ufc.br || repositorio@ufc.br |
| _version_ |
1847792052355465216 |