client side fps control for reduce delay

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages committed 2023-04-07 18:53:29 +08:00
1 parent bc5c6e9a06
commit b79f14af12
7 files changed
+143 -24

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
use super::*;
use std::time::Duration;
pub const FPS: u8 = 30;
pub const MIN_FPS: u8 = 10;
pub const MIN_FPS: u8 = 1;
pub const MAX_FPS: u8 = 120;
trait Percent {
fn as_percent(&self) -> u32;