Hi,
I'm developing a journey/video player in Unity and currently using Adventure Creator's ActionList system to define logic that can also be modified at runtime through JSON.
However, I’ve observed that the memory usage on WebGL builds is relatively high—up to 480 MB. To investigate this, I conducted some RAM usage tests:
A new empty Unity project initially used 246 MB, later reducing to 215 MB.
An empty project with Adventure Creator started at 315 MB, dropped to 291 MB, and finally stabilized at 275 MB.
This suggests that Adventure Creator adds approximately 60–75 MB of memory usage, which seems quite substantial for my use case.
Given that I plan to add more features in the future, memory efficiency is critical. I may also use more features of Adventure Creator in this or other web-based projects. If there are any ways to optimize the memory usage of Adventure Creator, especially for WebGL builds, I would greatly appreciate your guidance or any recommendations.
Thank you for your time!
Note: All tests were done using Unity WebGL builds, as the target platform for the app is the web.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Firstly, if you're not relying on them, you can delete the Demo and 2DDemo subfolders - these include Resources assets that will be included in builds by default. That's likely the main factor for the difference in a fresh project.
If the usage is still high, the Memory Profiler should be able to pinpoint the cause.
More generally, a list of AC-specific aspects to consider can be found in the Manual's "Performance and optimisation" chapter.