Bump PMOMusic version and improve snapshot update logic
Version bump for PMOMusic from 0.3.1 to 0.3.3 - Updated snapshot update logic in useRenderers.ts to directly update local snapshot state based on event types - Improved handling of various events like state_changed, position_changed, volume_changed, etc. - Adjusted polling interval in control_point.rs from 500ms to 250ms for smoother UI updates
This commit is contained in:
@@ -334,8 +334,8 @@ impl ControlPoint {
|
||||
}
|
||||
|
||||
tick = tick.wrapping_add(1);
|
||||
// 500ms polling for smoother position updates and progress bar
|
||||
thread::sleep(Duration::from_millis(500));
|
||||
// 250ms polling for smoother UI updates and fluid progress bar
|
||||
thread::sleep(Duration::from_millis(250));
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user