BgfxManuallyRenderFrame Method |
Manually renders a frame. Use this to control the Bgfx render loop.
Namespace:
Internal.SharpBgfx
Assembly:
NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax public static RenderFrameResult ManuallyRenderFrame(
int timeoutMs = -1
)
Parameters
- timeoutMs (Optional)
- Type: SystemInt32
The amount of time to wait, in milliseconds, for the next frame to be rendered.
If the timeout is exceeded, the call
returns.
Return Value
Type:
RenderFrameResultThe result of the render call.
Remarks
Use this function if you don't want Bgfx to create and maintain a
separate render thread. Call this once before [!:Bgfx.Init(RendererBackend, Adapter, ICallbackHandler)]
to avoid having the thread created internally.
See Also