Recorder - Extreme lag in Game View

Successfully used the Recorder a few weeks ago, with a playable frame rate in the Game View. Currently when using the recorder to capture an MP4 movie, the game view lags an excruciating amount. Below I have attached my recording settings, as well as a setup of the scene I am trying to record and included script. I am trying to record a character playing through a designed map, and am having the same problems recording in that scene as I am in this one (this scene is a dumbed down version of my ultimate goal).

Running 2019.2.0f1 with Unity Recorder 2.0.2

LyricRotation.cs

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class LyricRotation : MonoBehaviour
{
    // Attached to lyric parent object. Rotates the 3d lyric in play area.
    // Rotates back and forth.

    public float Speed = 2.0f;
    public float secondsToRotate = 1f;
    float rotateTimer = 0.0f;

    // Start is called before the first frame update
    void Start()
    {
     
    }

    // Update is called once per frame
    void Update()
    {
        rotateTimer += Time.deltaTime;
        //Debug.Log(rotateTimer%2);
        if (rotateTimer%2<1)
        {
            transform.Rotate(0f, Speed, 0f, Space.World);
        }
        else
        {
            transform.Rotate(0f, -Speed, 0f, Space.World);
        }
    }
}

1 Like

I have found plugging into an external monitor with an HDMI resolves this issue. Without external monitor plugged in while recording, Game View runs ~5fps, while with a monitor plugged in, it runs ~60fps

Hi, please tell me this is not the best that the recorder can do? is there anything i can do to make it lag less?
Even when i tried recording at 240p with low quality, it looks the same in profiler…

I’m having the same issue. Is there any workaround to solve the lag?

Same issue here, any recommendations? Without the Recorder running my game runs between 60-100 FPS but goes all the way to 15 FPS when Recorder is set to start recording. I watched the Profiler and noticed in “Other” it spikes and the main CPU usage is coming from PlayerLoop, EarlyUpdate.UpdateAsyncReadbackManager, VideoMediaEncoder.AddVideoFrame, & VP8VideoMedia.VpxEncodeFrame. These things are causing my FPS to drop to where the cutscene goes super slow and the recording records it in that slow motion, I would speed up the video but it’s speeds are inconsistent and bounce between slow and normal speed occasionally.

I have the same problem. Normally my scene runs at 500 fps when not capped. With recorder its creazy 6fps.

1 Like

I’d suggest filing a bug report if you’re experiencing this issue.

Same issues with Unity 2021.2.12f1. I hope it can be fixed one day. I may just record images with ScreenCapture and compile my own videos instead.

Any news / workaround for this? This is super annoying. In fact unusable.

Same issue for me. I’m trying to record 360 video but as soon as I hit record, it drops from 60FPS to < 20FPS