Default HDRP project build appears to constantly increase system memory usage

According to windows task manager my game build appears to constantly sucking up system memory, but only in the build (PC). This eventually causes problems/slowdowns if the game runs long enough (why I initially checked the task manager).

I assumed it was a memory leak in my code somewhere, so opened up the profiler. But, running in the Editor, and using the memory profiler shows no such corresponding, constant increase in memory. It DOES show some ups and downs in total usage, some garbage collection and so on… but nothing unexpected, and nothing constantly going up. Also, task manager shows the editor’s memory usage capping out within about a minute of hitting “play”, sometimes it even goes down.

So as a test, I removed all scenes, except a brand new default scene, from the build. Surprisingly, the memory creep continued when building and running it!

I created a whole new HDRP project, and built it: same result!

So I installed the latest version of Unity, created a new HDRP project in that version (2020.2.6f1) then built a PC build for it (no options changed, default HDRP scene).

I get the same result- a slow, but constant creep on the systems memory resources!

This image shows the usage samples I took today… I’ll keep monitoring the latest version one, to see if it caps out at some point (or if my system starts becoming unusable). [at 4:42, I closed my game, and version 2020.1 default build and launched a new 2020.2 default build]

(note the times listed below are “time of day”)

Can anybody explain what’s going on here? It SHOULD cap out at some point, right?

I let it continue to run until I had to go to bed- it never stopped growing!
6894422--806549--upload_2021-3-2_11-29-14.png

Hey @Glurth , I have tried to repro on my side and so far nothing, I’ve let the player run in the HDRP template for a few hours and it stays stable minus a few mb of variations. (in 2020.3 and latest alpha 2021.2)

Do you happen to have the binary in question so I can try and repro with it ?

Hi Chap,

Thanks for responding. I’m surprised you were unable to reproduce the results- apparently, the testers were, but only under certain conditions.

I failed to mention it initially, and it’s potentially a difference in our systems: I’m running on Windows 7.
Also, in the time since I initially posted this, I tested and got the same results with 2020.3.0f1

You mentioned the HDRP template- do you mean the default scene that is set up when you create a new HDRP project? This is what was included in the problematic build.

The binary:
I tried to upload a zip of the build from my system, but apparently, the zip file (161MB) is too large for the forum. How shall I get it to you?

Or, should we just let the “issuetracker” handle this now?