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 have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug Recorder slows down "enter Play Mode" performance

Discussion in 'Audio & Video' started by arcnor, Apr 4, 2022.

  1. arcnor

    arcnor

    Joined:
    Nov 29, 2014
    Posts:
    21
    When I have the recorder package enabled (not even the window for it opened, just the package enabled), my "enter play mode" performance (the time it takes between pressing Play and actually being able to play the game, sorry if that's not the real terminology for it) goes from ~6 seconds to ~20 seconds, consistently.

    This was already happening to me in 2019.x with a preview version of the recorder package, and I've been trying now with 2020.3.26f1 and the latest recorder stable package (3.0.3), with different projects, and I get the same issue.

    It will be "acceptable" if this happened only when having the Recorder window opened, or even better only when recording, but not when I'm not even looking at it.

    Has anybody found this happening to them, and/or know of a workaround for the issue? I really like the functionality, but the performance hit is totally unacceptable.
     
  2. vladala

    vladala

    Unity Technologies

    Joined:
    Mar 3, 2017
    Posts:
    188
    Hey,

    Thanks a lot for the report. I think I know why it happens: the recorder not using the cached Type information functions to fill it's internal cache: This means that every time you go in play mode, all this cache is rebuilt (using inefficient calls).


    EDIT: Unfortunately I am not able to "prove" that the recorder is really slowing down things a lot on my end (most of the projects I have locally are not script heavy...) so I will fix it in the upcoming version.
    Could you give me a sense of the size of your project in terms of code / assemblies, etc?
    Can you repro the problem when the window is not opened?

     
    Last edited: Apr 4, 2022
  3. arcnor

    arcnor

    Joined:
    Nov 29, 2014
    Posts:
    21
    Hey @vladala, thanks for your comment.

    My projects are not really that big, and the current one I'm having issues with has ~320 script files, plus the usual Unity default packages, as well as DLLs for DOTween a very few random others.

    Yeah, as I mentioned above, this happens just by installing the package and pressing Play, no window needs to be opened at all.