API Docs
    Preparing search index...

    Type Alias coreSettings

    type coreSettings = {
        allowOpposingDirections?: boolean;
        audioBufferSize?: number;
        audioSampleRate?: number;
        audioSync?: boolean;
        autoSaveStateEnable?: boolean;
        autoSaveStateTimerIntervalSeconds?: number;
        baseFpsTarget?: number;
        frameSkip?: number;
        restoreAutoSaveStateOnLoad?: boolean;
        rewindBufferCapacity?: number;
        rewindBufferInterval?: number;
        rewindEnable?: boolean;
        showFpsCounter?: boolean;
        threadedVideo?: boolean;
        timestepSync?: boolean;
        videoSync?: boolean;
    }
    Index
    allowOpposingDirections?: boolean

    If true, allows opposing directional inputs (ex. left + right) to be accepted simultaneously. When false, only a single directional input is accepted at a time.

    Default: true

    audioBufferSize?: number

    Preferred size, in samples, of the audio buffer. Smaller buffers reduce latency but increase the chance of underruns, larger buffers increase latency but are more stable.

    Typical values: 256..4096

    Default: 1024

    audioSampleRate?: number

    Requested audio sample rate in Hz for the audio output. The core will attempt to use this rate, actual output depends on the host audio device (best effort).

    Typical values: 22050, 32000, 44100, 48000

    Default: 48000

    audioSync?: boolean

    If true, synchronizes the video frame rate to the audio output speed.

    Default: false

    autoSaveStateEnable?: boolean

    Enable/disable periodic auto save state capture.

    Default: true

    autoSaveStateTimerIntervalSeconds?: number

    Interval in seconds between periodic auto save state captures.

    Typical values: 10..30

    Default: 30

    baseFpsTarget?: number

    Target base frames-per-second for the emulation core. Used by timing and frame-rate calculations.

    Typical values: 60, 30

    Default: 60

    frameSkip?: number

    Number of frames to skip rendering between screen paints.

    Typical values: 0..10

    Default: 0

    restoreAutoSaveStateOnLoad?: boolean

    If true, attempts to load the latest auto save state after a game load/reset.

    Default: true

    rewindBufferCapacity?: number

    Maximum number of rewind states to keep in memory. Larger values allow longer rewind history at the cost of consumed memory. Value is a count of historical entries in the buffer.

    Typical values: 100..10000 is reasonable depending on memory pressure and the rewind interval.

    Default: 600

    rewindBufferInterval?: number

    The speed at which rewind snapshots are taken. Larger numbers mean rewind happens faster.

    Typical values: 1..10

    Default: 1

    rewindEnable?: boolean

    Enable/disable rewind support.

    Default: true

    showFpsCounter?: boolean

    If true, show an on-screen true FPS counter overlay.

    Default: false

    threadedVideo?: boolean

    If true, render video on a separate thread (if supported).

    Default: false

    timestepSync?: boolean

    If true, the core will sync using discrete timestep increments based on the baseFpsTarget value rather than variable-step delta timing (audio/video).

    Default: true

    videoSync?: boolean

    If true, synchronize the video frame rate to the host display refresh rate (vsync).

    Default: false