skip to main content
10.1145/3640310.3674099acmconferencesArticle/Chapter ViewAbstractPublication PagesmodelsConference Proceedingsconference-collections
research-article

A Comparative Analysis of Energy Consumption Between Visual Scripting models and C++ in Unreal Engine: Raising Awareness on the importance of Green MDD

Published: 22 September 2024 Publication History

Abstract

Video game engines are used in most modern video games because they simplify and speed up development. In addition, some of the most popular engines, such as Unreal Engine 5 (UE5), also integrate visual scripting tools. Visual scripting in UE5, through Blueprints, is a model-driven development approach that replaces text code, like C++, with a visual language of interconnected nodes representing functions and data flows, forming a flowchart-like logic diagram. This approach simplifies game development by abstracting complex code into intuitive, visual models, enabling creators to construct and iterate game components without extensive programming knowledge. Although Blueprint models usually decrease the complexity of implementing components, thus accelerating the development, they might lead to less energy-efficient runtime performance than C++. In this work, we evaluate the energy consumption of three relevant video game components (health system management, inputs processing, and collections operations for an inventory), each implemented with Blueprint models and C++. The results show that the energy consumption per frame when using C++ is up to 48% lower than when using Blueprint models. The combination of artistic and technical profiles in video game developments has favoured the adoption of Blueprint models. However, there is a lack of works analyzing the energy consumption. Until this work, there was no evidence that the success of models for developing video games, like the one under study in this work, was accompanied by a cost in energy consumption for certain situations. Given the huge popularity of video games, this cost in energy might reach up to the equivalent of the energy consumption of 28 million European households.

References

[1]
2023. Electricity consumption per dwelling. https://www.odyssee-mure.eu/publications/efficiency-by-sector/households/electricity-consumption-dwelling.html. [Online; accessed 16-January-2024].
[2]
activeplayer.io Game Statistics Authority. 2023. Fortnite Live Player Count and Statistics. https://activeplayer.io/fortnite/. [Online; accessed 11-December-2023].
[3]
Anders Andrae. 2019. Projecting the chiaroscuro of the electricity use of communication and computing from 2018 to 2030. https://doi.org/10.13140/RG.2.2.25103.02724
[4]
Ankita Atrey, Nikita Jain, and N Ch Sriman Narayana Iyenger. 2013. A Study on Green Cloud Computing. International Journal of Grid and Distributed Computing 6 (12 2013), 93--102. https://doi.org/10.14257/ijgdc.2013.6.6.08
[5]
Newzoo International B.V. 2023. How consumers engage with video games today. https://newzoo.com/resources/trend-reports/global-gamer-study-free-report-2023?utm_campaign=2023-06-GGS-GGS%202023%20launch%20report&utm_source=Press. [Online; accessed 16-January-2024].
[6]
Newzoo International B.V. 2023. Newzoo's Global Games Market Report 2023. https://newzoo.com/resources/trend-reports/newzoo-global-games-market-report-2023-free-version#:~:text=Highlights%20of%20the%20free%202023%20Global%20Games%20Market%20Report%3A&text=The%20number%20of%20players%20worldwide,year%20growth%20of%20%2B0.6%25. [Online; accessed 16-January-2024].
[7]
Coral Calero, Macario Polo, and Ma Ángeles Moraga. 2021. Investigating the impact on execution time and energy consumption of developing with Spring. Sustainable Computing: Informatics and Systems 32 (2021), 100603.
[8]
Jessica Clement. 2023. Average weekly hours spent playing video games in selected countries worldwide as of January 2021. https://www.statista.com/statistics/273829/average-game-hours-per-day-of-video-gamers-in-selected-countries/. [Online; accessed 19-December-2023].
[9]
Brian Crecente. 2023. Unreal Engine powers stylish stellar mystery The Invincible. https://www.unrealengine.com/en-US/developer-interviews/unreal-engine-powers-stylish-stellar-mystery-the-invincible. [Online; accessed 26-March-2024].
[10]
Istvan David and Dominik Bork. 2023. Towards a taxonomy of digital twin evolution for technical sustainability. In 2023 ACM/IEEE International Conference on Model Driven Engineering Languages and Systems Companion (MODELS-C). IEEE, 934--938.
[11]
Eleonora Fanouraki. 2022. Did you know that 60% of game developers use game engines? https://www.slashdata.co/blog/did-you-know-that-60-of-game-developers-use-game-engines. [Online; accessed 05-December-2023].
[12]
Gabriele Gramelsberger, Hendrik Kausch, Judith Michael, Frank Piller, Ferdinanda Ponci, Aaron Praktiknjo, Bernhard Rumpe, Rega Sota, and Sandra Venghaus. 2023. Enabling informed sustainability decisions: sustainability assessment in iterative system modeling. In 2023 ACM/IEEE International Conference on Model Driven Engineering Languages and Systems Companion (MODELS-C). IEEE, 964--968.
[13]
CD PROJEKT Group. 2023. Consolidated Report for Q1 2023. https://www.cdprojekt.com/en/investors/regulatory-announcements/consolidated-report-for-q1-2023/. [Online; accessed 30-March-2024].
[14]
Achim Guldner, Rabea Bender, Coral Calero, Giovanni S Fernando, Markus Funke, Jens Gröger, Lorenz M Hilty, Julian Hörnschemeyer, Geerd-Dietger Hoffmann, Dennis Junger, et al. 2024. Development and evaluation of a reference measurement model for assessing the resource and energy efficiency of software products and components---Green Software Measurement Model (GSMM). Future Generation Computer Systems (2024).
[15]
María Gutiérrez, Ma Ángeles Moraga, Félix García, and Coral Calero. 2023. Green-IN Machine Learning at a Glance. Computer 56, 6 (2023), 35--43.
[16]
Epic Games Inc. 2023. Real-time round-up: the state of interactive 3D. https://www.unrealengine.com/en-US/blog/real-time-round-up-the-state-of-interactive-3d. [Online; accessed 11-December-2023].
[17]
Epic Games Inc. 2024. About Epic Games. https://www.epicgames.com/site/en-US/about. [Online; accessed 13-March-2024].
[18]
Epic Games Inc. 2024. Blueprint Compiler Overview. https://dev.epicgames. com/documentation/en-us/unreal-engine/compiler-overview-for-blueprints-visual-scripting-in-unreal-engine?application_version=5.3. [Online; accessed 25-March-2024].
[19]
Epic Games Inc. 2024. The most powerful real-time 3D creation tool - Unreal Engine. https://www.unrealengine.com/. [Online; accessed 26-March-2024].
[20]
University of Lille Inria. 2023. PowerAPI. https://powerapi.org/. [Online; accessed 27-May-2024].
[21]
Daniel Johnson, Ella Horton, Rory Mulcahy, and Marcus Foth. 2017. Gamification and serious games within the domain of domestic energy consumption: A systematic review. Renewable and Sustainable Energy Reviews 73 (2017), 249--264.
[22]
Jörg Kienzle, Gunter Mussbacher, Benoit Combemale, Lucy Bastin, Nelly Bencomo, Jean-Michel Bruel, Christoph Becker, Stefanie Betz, Ruzanna Chitchyan, Betty HC Cheng, et al. 2020. Toward model-driven sustainability evaluation. Commun. ACM 63, 3 (2020), 80--91.
[23]
Nupur Kothari and Arka Bhattacharya. 2009. Joulemeter: Virtual machine power measurement and management. MSR Tech Report (2009).
[24]
Javier Mancebo, Coral Calero, Félix García, Ma Ángeles Moraga, and Ignacio García-Rodríguez de Guzmán. 2021. FEETINGS: Framework for energy efficiency testing to improve environmental goal of the software. Sustainable Computing: Informatics and Systems 30 (2021), 100558.
[25]
R. Pereira, M. Couto, F. Ribeiro, R. Rua, J. Cunha, J.P. Fernandes, and J. Saraiva. 2021. Ranking programming languages by energy efficiency. Science of Computer Programming 205 (2021). https://doi.org/10.1016/j.scico.2021.102609
[26]
Carlos Pérez, Ana C Marcén, Javier Verón, and Carlos Cetina. 2023. A survey on green computing in video games: The dawn of Green Video Games. (Dec. 2023). arXiv:2312.09053 [cs.SE]
[27]
Carlos Pérez, Javier Verón, Félix García, M Ángeles Moraga, Coral Calero, and Carlos Cetina. 2024. A comparative analysis of energy consumption between the widespread unreal and Unity video game engines. (Feb. 2024). arXiv:2402.06346 [cs.SE]
[28]
Clauirton Siebra, Paulo Costa, Rafael Marques, Andre L M Santos, and Fabio Q B Silva. 2011. Towards a green mobile development and certification. In 2011 IEEE 7th International Conference on Wireless and Mobile Computing, Networking and Communications (WiMob). 288--294. https://doi.org/10.1109/WiMOB.2011.6085386
[29]
Nikolai Baskin Sokolov. 2021. Unreal Engine 5: C++ vs Blueprints. https://gamedev.gg/c-vs-blueprint-in-unreal-5/. [Online; accessed 26-March-2024].
[30]
Jimmy Thang. 2019. Solo dev Gwen Frey explains how she developed puzzle game Kine using only Blueprints. https://www.unrealengine.com/en-US/developer-interviews/solo-dev-gwen-frey-explains-how-she-developed-puzzle-game-kine-using-only-blueprints. [Online; accessed 26-March-2024].
[31]
Lizhe Wang and Samee Khan. 2011. Review of performance metrics for green data centers: A taxonomy study. The Journal of Supercomputing 63 (03 2011), 1--18. https://doi.org/10.1007/s11227-011-0704-3
[32]
Claes Wohlin, Per Runeson, Martin Höst, Magnus C Ohlsson, Björn Regnell, and Anders Wesslén. 2012. Experimentation in Software Engineering. Springer Science & Business Media.
[33]
SlashData ©. 2022. State of the Developer Nation 23rd Edition. https://docsend.com/view/4cmnvxa2xb5jd6hr?utm_source=SlashDataco&utm_medium=FreeReports_SoN23. [Online; accessed 29-March-2024].

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Conferences
MODELS '24: Proceedings of the ACM/IEEE 27th International Conference on Model Driven Engineering Languages and Systems
September 2024
311 pages
ISBN:9798400705045
DOI:10.1145/3640310
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 22 September 2024
Accepted: 14 June 2024

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. Blueprints
  2. C++
  3. Energy consumption
  4. Game Engines
  5. Game Software Engineering
  6. Green Video Games
  7. Green software
  8. Software Models
  9. Software sustainability
  10. Unreal Engine
  11. Video Games
  12. Visual Scripting

Qualifiers

  • Research-article
  • Research
  • Refereed limited

Funding Sources

  • CECD (JCCM) and FEDER funds
  • Gobierno de Aragón
  • MINECO
  • MCIN/AEI/ 10.13039/501100011033 and European Union NextGenerationEU/PRTR
  • UE
  • MCIN/AEI/ 10.13039/501100011033 and European Union NextGenerationEU

Conference

MODELS '24
Sponsor:

Acceptance Rates

MODELS '24 Paper Acceptance Rate 26 of 124 submissions, 21%;
Overall Acceptance Rate 144 of 506 submissions, 28%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • 0
    Total Citations
  • 155
    Total Downloads
  • Downloads (Last 12 months)155
  • Downloads (Last 6 weeks)20
Reflects downloads up to 03 Mar 2025

Other Metrics

Citations

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media