Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

chore: divide cpu usage by 2

Louis Beaumont13e9fefd7578
diff --git a/screenpipe-server/src/bin/screenpipe-server.rs b/screenpipe-server/src/bin/screenpipe-server.rs
index c2252b4db..f18707988 100644
--- a/screenpipe-server/src/bin/screenpipe-server.rs
+++ b/screenpipe-server/src/bin/screenpipe-server.rs
@@ -13,7 +13,7 @@ use screenpipe_server::{start_continuous_recording, DatabaseManager, Server};
#[command(author, version, about, long_about = None)]
struct Cli {
/// FPS for continuous recording
- #[arg(short, long, default_value_t = 10.0)]
+ #[arg(short, long, default_value_t = 5.0)]
fps: f64,
/// Audio chunk duration in seconds
diff --git a/screenpipe-server/src/video.rs b/screenpipe-server/src/video.rs
index c261b6900..aa674e04c 100644
--- a/screenpipe-server/src/video.rs
+++ b/screenpipe-server/src/video.rs
@@ -16,7 +16,7 @@ use std::thread;
use std::time::Duration;
use threadpool::ThreadPool;
-const MAX_THREADS: usize = 16; // Adjust based on your needs
+const MAX_THREADS: usize = 8; // Adjust based on your needs
const MAX_FPS: f64 = 30.0; // Adjust based on your needs
pub fn extract_frames_from_video(
diff --git a/screenpipe-vision/src/core.rs b/screenpipe-vision/src/core.rs
index 56a6510c2..e48b0d747 100644
--- a/screenpipe-vision/src/core.rs
+++ b/screenpipe-vision/src/core.rs
@@ -20,7 +20,7 @@ pub struct CaptureResult {
pub text: String,
}
-const MAX_THREADS: usize = 16; // Adjust based on your needs
+const MAX_THREADS: usize = 8; // Adjust based on your needs
pub fn continuous_capture(
control_rx: Receiver<ControlMessage>,