Game continues to occupy system memory after a replay ends

:arrow_forward: GAME INFORMATION

:point_down: These details are CRITICAL; DO NOT skip them or your issue may not be reviewed.

  • **GAME BUILD 101.101.44834.0 6148570
  • GAME PLATFORM: Steam
  • OPERATING SYSTEM: Windows 10

:arrow_forward: ISSUE EXPERIENCED

:point_down: DESCRIBE THE ISSUE IN DETAIL (below). LIMIT TO ONE BUG PER THREAD.
While you are watching a reploy, the memory usage of the app continously increase. But even after the replay ends used memory won’t be released. Only if you load another replay the memory usage get back to normal

:arrow_forward: FREQUENCY OF ISSUE

:point_down: How often does the issue occur? CHOSE ONE; DELETE THE REST!

  • 100% of the time

:arrow_forward: REPRODUCTION STEPS

:point_down: List CLEAR and DETAILED STEPS we can take to reproduce the issue ourselves… Be descriptive!

Here’s the steps to reproduce the issue:

  1. Load a long multiplayer replay, watch till the end
  2. Check memory usage of the application after the replay finished
  3. Load another replay and check memory usage again

:arrow_forward: EXPECTED RESULT

:point_down: What was SUPPOSED to happen if the bug you encountered were not present?

:arrow_forward: IMAGE

:point_down: ALWAYS attach a PICTURE (.jpg, .png, .gif) or VIDEO (.mp4, YouTube link) that highlights the problem.

This is a real issue, game uses 7-8gbs of ram

While it’s hard for me to say if what you see is a memory leak, based on your description it’s sounds like the usual memory alocation pattern on many modern systems.
First thing to keep in mind, we mostly don’t want an applications memory footprint to continually grow and shrink. We want it to grow to a maximal size and keep that size throughout its life. Returning memory to the operation system is an exception. For Aoe2DE the size is ~8GB for better of worse (or more for the UltraHD graphics).
The pattern you describe also sounds like a behaviour of many managed memory langauges (with gargabe collection or reference counting). The memory is only released when it’s no longer used. Which is often only when something else is loaded (like the next recording).
None of this might be ideal for you, but you shouldn’t worry too much. The operating system should mamange it well. With a fast SSD or M2 disk you will also barely notice any swapping. But keep in mind, this game does need ~8GB of memory.
What would be a concern if you see the memory footprint continously grow over a long play session. That would indicate memory leaks, which are a serious memory issue.