Skip to content

Commit

Permalink
#1397 Query __linux_rt_prio from REAPER >= 7.30+dev0116
Browse files Browse the repository at this point in the history
  • Loading branch information
helgoboss committed Jan 24, 2025
1 parent cf37955 commit dc79fd5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 25 deletions.
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 5 additions & 16 deletions main/src/infrastructure/proto/initial_events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,25 +69,14 @@ pub fn create_initial_instance_updates(
}
// Playtime checks
if cfg!(feature = "playtime") {
// Check platform support
if cfg!(target_os = "linux") {
let msg = "Playtime for Linux is a work in progress! Recording and playback performance are not optimized yet. That's also the reason why you get the thread priority warning.";
warnings.push(Update::warning(
Severity::Medium,
Some(Scope::Playtime),
msg.to_string(),
));
}
#[cfg(feature = "playtime")]
{
if playtime_clip_engine::thread_util::setting_thread_prios_failed() {
// TODO-high CONTINUE Add hint that the reason could be permission issues as soon as experimental Linux support complete.
let msg = "Setting thread priorities was not successful! This means that clip playback and recording performance will not be optimal!";
warnings.push(Update::warning(
Severity::High,
Some(Scope::Playtime),
msg.to_string(),
));
let mut msg = "Setting thread priorities was not successful! This means that clip playback and recording performance will not be optimal!".to_string();
if cfg!(target_os = "linux") && reaper_revision < "7.30+dev0116" {
msg += " This issue should disappear as soon as you update to the upcoming REAPER version 7.31+.";
}
warnings.push(Update::warning(Severity::High, Some(Scope::Playtime), msg));
}
}
// Check minimum REAPER version
Expand Down
2 changes: 1 addition & 1 deletion playtime-clip-engine

0 comments on commit dc79fd5

Please sign in to comment.