diff --git a/crates/re_data_store/src/log_db.rs b/crates/re_data_store/src/log_db.rs index 7a29723bde12..2308af4cc59f 100644 --- a/crates/re_data_store/src/log_db.rs +++ b/crates/re_data_store/src/log_db.rs @@ -280,6 +280,7 @@ impl LogDb { } /// Free up some RAM by forgetting parts of the time that are more than `cutoff` ns in the past. + #[cfg(not(target_arch = "wasm32"))] pub fn clear_by_cutoff(&mut self, cutoff: i64) { let cutoff_time = Time::now().nanos_since_epoch() - cutoff; let oldest = self.entity_db.data_store.oldest_time_per_timeline(); diff --git a/crates/re_viewer/src/app.rs b/crates/re_viewer/src/app.rs index 8f7b6fdf0521..9c3ec5f38b8b 100644 --- a/crates/re_viewer/src/app.rs +++ b/crates/re_viewer/src/app.rs @@ -849,6 +849,7 @@ impl App { } } + #[cfg(not(target_arch = "wasm32"))] for log_db in self.log_dbs.values_mut() { log_db.clear_by_cutoff(2e9 as i64); }