phaser - v4.0.0-rc.4
    Preparing search index...

    Type Alias FPSConfig

    type FPSConfig = {
        deltaHistory?: number;
        forceSetTimeOut?: boolean;
        limit?: number;
        min?: number;
        panicMax?: number;
        smoothStep?: boolean;
        target?: number;
    }
    Index

    Properties

    deltaHistory?: number

    Calculate the average frame delta from this many consecutive frame intervals.

    forceSetTimeOut?: boolean

    Use setTimeout instead of requestAnimationFrame to run the game loop.

    limit?: number

    Enforces an fps rate limit that the game step will run at, regardless of browser frequency. 0 means 'no limit'. Never set this higher than RAF can handle.

    min?: number

    The minimum acceptable rendering rate, in frames per second.

    panicMax?: number

    The amount of frames the time step counts before we trust the delta values again.

    smoothStep?: boolean

    Apply delta smoothing during the game update to help avoid spikes?

    target?: number

    The optimum rendering rate, in frames per second. This does not enforce the fps rate, it merely tells Phaser what rate is considered optimal for this game.