Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Debug/Profile Temp and TempJob buffers

Discussion in 'Profiler Previews' started by sebas77, Jul 2, 2020.

  1. sebas77

    sebas77

    Joined:
    Nov 4, 2011
    Posts:
    1,590
    Hi,

    I noticed that there is some support to see how much memory is used for these buffers, but I would need also to know what's inside the buffers. Is it possible?
     
  2. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,108
    Hi again :)

    There isn't yet, no. For multiple reasons:
    1. Their content changes on a high frequency multiple times per frame, but the Memory Profiler only takes a snapshot. We'd ideally need to continuously monitor/capture these to give more reasonable insights into them
    2. Any such introspection would slow the allocators down and they are build for high frequency access and speed, so we need to tread carefully and make the overhead for this controllable and minimal.
    3. Tracking their Allocation site would likely add a great deal of actionability for minimal overhead.
    Theres likely more that I'm forgetting right now but, we're very aware of the interest in better introspection possibilities for these and working towards and exploring solutions to these. As you've noticed, there are some other more fundamental issues, especially around the UX that we'll likely be focusing on first.
     
  3. sebas77

    sebas77

    Joined:
    Nov 4, 2011
    Posts:
    1,590
    what I would need to know is what takes spaces in the buffer before the clear(). I guess it's not possible to have this information just from the snapshot unless unity allocator system provides already some debug info.

    I recently had a problem that drove me crazy. For days the profiler was showing impossible memory fallback (we discussed it remember?) All of the sudden now they are gone. Left me scarred.