Banuba SDK
Functions
BNBConsistencyMode.h File Reference
#import <Foundation/Foundation.h>

Go to the source code of this file.

Functions

typedef NS_ENUM (NSInteger, BNBConsistencyMode)
 These modes describe the relationship between processing loop and render loop frames. More...
 

Function Documentation

◆ NS_ENUM()

typedef NS_ENUM ( NSInteger  ,
BNBConsistencyMode   
)

These modes describe the relationship between processing loop and render loop frames.

Synchronous - Asynchronous:


- Synchronous means to output (render) a frame only once after a new frame was fully processed
- Asynchronous may render multiple (not waiting for frx), further divided into Consistent and Inconsistent sub-modes. (note: Synchronous mode by definition is always Consistent.)

Consistent - Inconsistent:


- Consistent renders the processed frames as-is, the only change being in the advancement of time (e.g. animations, videos), while
- Inconsistent changes the camera image for that frame to the latest available (not yet processed), resulting in smoother rendering in case frx is slow or unsteady.

switches to async-inconsistent mode while effect is loading

switches to async-inconsistent mode while effect is loading

Definition at line 20 of file BNBConsistencyMode.h.

21 {
22  BNBConsistencyModeSynchronous,
23  /** switches to async-inconsistent mode while effect is loading */
24  BNBConsistencyModeSynchronousWhenEffectLoaded,
25  BNBConsistencyModeAsynchronousInconsistent,
26  BNBConsistencyModeAsynchronousConsistent,
27  /** switches to async-inconsistent mode while effect is loading */
28  BNBConsistencyModeAsynchronousConsistentWhenEffectLoaded,
29 };