setFrameScheduledCallback
Sets a callback to be invoked when a frame is scheduled for presentation.
The exact timing and behavior of this callback depends on the graphics backend:
Metal Backend: Signifies that Filament has completed all CPU-side processing for the frame and it is ready to be scheduled for presentation. The callback allows the application to take control of presentation scheduling.
Other Backends (OpenGL, Vulkan, WebGPU): Serves as a notification that CPU-side processing is complete. Filament proceeds with normal presentation automatically.
Only one callback per frame can be set. If called multiple times before Renderer.endFrame(), the most recent call overwrites the previous one.
Parameters
The callback function to invoke when the frame is scheduled. Pass null or a no-op function to unset the callback.
Sets a callback to be invoked when a frame is scheduled for presentation.
The exact timing and behavior of this callback depends on the graphics backend:
Metal Backend: Signifies that Filament has completed all CPU-side processing for the frame and it is ready to be scheduled for presentation. The callback allows the application to take control of presentation scheduling.
Other Backends (OpenGL, Vulkan, WebGPU): Serves as a notification that CPU-side processing is complete. Filament proceeds with normal presentation automatically.
Only one callback per frame can be set. If called multiple times before Renderer.endFrame(), the most recent call overwrites the previous one.
Parameters
The callback function to invoke when the frame is scheduled. Pass null or a no-op function to unset the callback.
Sets a callback to be invoked when a frame is scheduled for presentation.
The exact timing and behavior of this callback depends on the graphics backend:
Metal Backend: Signifies that Filament has completed all CPU-side processing for the frame and it is ready to be scheduled for presentation. The callback allows the application to take control of presentation scheduling.
Other Backends (OpenGL, Vulkan, WebGPU): Serves as a notification that CPU-side processing is complete. Filament proceeds with normal presentation automatically.
Only one callback per frame can be set. If called multiple times before Renderer.endFrame(), the most recent call overwrites the previous one.
Parameters
The callback function to invoke when the frame is scheduled. Pass null or a no-op function to unset the callback.
Sets a callback to be invoked when a frame is scheduled for presentation.
The exact timing and behavior of this callback depends on the graphics backend:
Metal Backend: Signifies that Filament has completed all CPU-side processing for the frame and it is ready to be scheduled for presentation. The callback allows the application to take control of presentation scheduling.
Other Backends (OpenGL, Vulkan, WebGPU): Serves as a notification that CPU-side processing is complete. Filament proceeds with normal presentation automatically.
Only one callback per frame can be set. If called multiple times before Renderer.endFrame(), the most recent call overwrites the previous one.
Parameters
The callback function to invoke when the frame is scheduled. Pass null or a no-op function to unset the callback.
Sets a callback to be invoked when a frame is scheduled for presentation.
The exact timing and behavior of this callback depends on the graphics backend:
Metal Backend: Signifies that Filament has completed all CPU-side processing for the frame and it is ready to be scheduled for presentation. The callback allows the application to take control of presentation scheduling.
Other Backends (OpenGL, Vulkan, WebGPU): Serves as a notification that CPU-side processing is complete. Filament proceeds with normal presentation automatically.
Only one callback per frame can be set. If called multiple times before Renderer.endFrame(), the most recent call overwrites the previous one.
Parameters
The callback function to invoke when the frame is scheduled. Pass null or a no-op function to unset the callback.