Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Avoid flickering when using SharpAvi #568

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Jul 4, 2020

  1. Avoid flickering when using SharpAvi.

    When using SharpAvi, frames occassionally get dropped and the Texture2DFrame.CopyTo method produces a transparent frame. This has been observed to happen when recording the Windows desktop applications such as File Explorer. This causes the recording to flicker and have flashes of empty frames.
    
    The fix checks for transparency by comparing the current frame to all zeros, and uses the previously saved frame if necessary. For performance, it uses memcmp to compare to a byte array prefilled with zeros.
    alantan committed Jul 4, 2020
    Configuration menu
    Copy the full SHA
    666e8f7 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2020

  1. Add --stop argument to CLI

    Use a token, such as a GUID, which can be used to stop a recording.
    
    Can be used with or without length:
    - If no length is provided, recording will continue indefinitely
      until a token signal is sent.
    - If a length is provided, recording will continue until the time
      has expired or a token signal is sent, whichever arrives first.
    
    Example code to stop a recording that was started using --stop ABCDE:
    
    var doneWithInit = new EventWaitHandle(
        false, EventResetMode.ManualReset, "ABCDE");
    doneWithInit.Set();
    alantan committed Jul 5, 2020
    Configuration menu
    Copy the full SHA
    fe68e51 View commit details
    Browse the repository at this point in the history