ferroui_linuxframebuffer/linux_framebuffer_platform_options.rs
1//! The options of the platform (the port of
2//! `LinuxFramebufferPlatformOptions.cs`).
3
4/// Platform-specific options which apply to the Linux framebuffer.
5#[derive(Clone, Copy, Debug, PartialEq, Eq)]
6pub struct LinuxFramebufferPlatformOptions {
7 /// Gets or sets the number of frames per second at which the renderer
8 /// should run. Default 60.
9 pub fps: i32,
10
11 /// Render directly on the UI thread instead of using a dedicated
12 /// render thread. This can be usable if your device don't have
13 /// multiple cores to begin with. This setting is false by default.
14 pub should_render_on_ui_thread: bool,
15}
16
17impl Default for LinuxFramebufferPlatformOptions {
18 fn default() -> Self {
19 Self { fps: 60, should_render_on_ui_thread: false }
20 }
21}