Click or drag to resize

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: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public static RenderFrameResult ManuallyRenderFrame(
	int timeoutMs = -1
)

Parameters

timeoutMs  Int32  (Optional)
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

RenderFrameResult
The 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