Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • harvard-cite-them-right
  • 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
Autobattler in Unreal Engine
2026 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE creditsStudent thesis
Abstract [en]

This study compares the performance and scalability of a traditional Actor-based AI architecture with a MassEntity-based ECS architecture in Unreal Engine 5. The purpose is to examine how the choice of architecture affects FPS, frame-time stability, implementation complexity, and the ability to handle increasing numbers of simultaneous AI entities within the same scenario. A quantitative experiment was conducted in a controlled autobattler environment. Two functionally equivalent implementations were developed: one using Unreal Engine’s standard Actor workflow and one using MassEntity. The number of agents was gradually increased from 10 to 640, and performance was measured across two hardware configurations using automated benchmark runs. The results show that both architectures perform well at low agent counts, where the performance difference is minimal. However, from approximately 160 agents, the Actor-based implementation begins to lose performance more noticeably, while MassEntity remains more stable. The study also shows that MassEntity requires greater implementation effort, with more files, more lines of code, and higher cyclomatic complexity. The study concludes that Actor-based AI is suitable for smaller simulations where simplicity and development speed are important, whereas MassEntity is better suited for large-scale AI scenarios where scalability and stable performance are central requirements.

Abstract [sv]

Denna studie jämför prestanda och skalbarhet mellan en traditionell Actor-baserad AI-arkitektur och en MassEntity-baserad ECS-arkitektur i Unreal Engine 5. Syftet är att undersöka hur valet av arkitektur påverkar bildfrekvens (FPS), stabilitet av frametime, implementationskomplexitet samt förmågan att hantera ett ökande antal samtidiga AI-agenter i samma scenario. Ett kvantitativt experiment genomfördes i en kontrollerad Autobattler-miljö. Två funktionellt likvärdiga implementationer utvecklades: en baserad på Unreal Engines standardiserade Actor-modell och en baserad på MassEntity. Antalet agenter ökades successivt från 10 till 640, och prestanda mättes på två hårdvarukonfigurationer med hjälp av automatiserade benchmark-körningar. Resultaten visar att båda arkitekturerna presterar väl vid låga agentantal, där skillnaderna är små. Från cirka 160 agenter börjar dock den Actor-baserade implementationen tappa prestanda tydligare, medan MassEntity uppvisar mer stabilitet. Studien visar även att MassEntity kräver större implementationsinsats, med fler filer, fler rader kod och högre cyklomatisk komplexitet. Studien drar slutsatsen att Actor-baserad AI lämpar sig för mindre simuleringar där enkelhet och utvecklingshastighet är viktiga, medan MassEntity är bättre anpassad för storskaliga AI-scenarier där skalbarhet och stabil prestanda är centrala krav.

Place, publisher, year, edition, pages
2026.
Keywords [en]
Unreal Engine 5, MassEntity, Entity Component System, Actor-based Architecture, Object Oriented Programming, Performance Evaluation, Scalability, Data-Oriented Design, Multi Agent Systems, Benchmarking, Software Architecture, Design Science Research
Keywords [sv]
Unreal Engine 5, MassEntity, Entity Component System, Actor-baserad arkitektur, Objektorienterad programmering, Prestandautvärdering, Skalbarhet, Dataorienterad design, Multi-Agent-system, Benchmarking, Programvaruarkitektur, Design Science Research
National Category
Information Systems
Identifiers
URN: urn:nbn:se:hb:diva-36409OAI: oai:DiVA.org:hb-36409DiVA, id: diva2:2110886
Subject / course
Informatics
Available from: 2026-10-19 Created: 2026-10-16 Last updated: 2026-10-19Bibliographically approved

Open Access in DiVA

No full text in DiVA

Information Systems

Search outside of DiVA

GoogleGoogle Scholar

urn-nbn

Altmetric score

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

Direct link
Cite
Citation style
  • harvard-cite-them-right
  • 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