University of Alberta
Adapting Static Textual Code Metrics for Visual Programming Language Complexity Analysis
Abstract
dc:description.abstractVisual programming languages (VPLs) such as Unreal Engine Blueprints (Blueprints) and Unity Visual Scripting (UVS) are increasingly used in video game development to construct gameplay logic through the manipulation of graphical node-and-edge-based elements. Despite increasing adoption of game development VPLs, there is a lack of code metrics for developers to measure, monitor, and maintain their VPL codebase. This thesis adapts three textual code metrics for node-and-edge-based Blueprints and UVS: (1) Source Lines of Code, which we adapt into a new size metric, Size of Code (SOC), to measure magnitude; (2) Halstead Volume (HV) to measure the amount of information contained within the code; and (3) Cyclomatic Complexity (CC) to quantify branching complexity. These adapted code metrics are applied to the source code of Blueprints from 10,000 Unreal Engine GitHub repositories and UVS from 1,355 Unity GitHub repositories, and the results are statistically compared with the textual code metrics of the C++ source code in the Unreal Engine repositories and the C\# source code in the Unity repositories. We find that, across both Unreal Engine and Unity, VPL source code exhibits significantly lower measured size under the respective size metrics (SOC for visual source code and SLOC for textual source code), as well as lower information content measured by HV and lower branching complexity measured by CC, than textual source code. The size finding requires separate interpretation because SOC and SLOC quantify different structural elements and are not directly comparable in magnitude. Our proposed game development VPL metrics enable game developers to measure the size, information, and branching complexity of visual source code, the properties used to gauge maintainability in textual source code.
Degree
thesis:*- Name thesis:degree_name
- Master of Science
- Level thesis:degree_level
- Master's
- Grantor
- University of Alberta
- Year dc:date.issued
- 2026
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Guo, Ziyuan
- Advisor dc:contributor.advisor
-
- Hindle, Abram (Computing Science)
Subjects
dc:subject × 8Rights
dc:rights- Statement dc:rights
-
- This thesis is made available by the University of Alberta Library with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law.
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- DOI dc:identifier.doi
- https://doi.org/10.7939/85895