# Are there known hosts in 2020 that don't reliably set isNonRealtime flag?

**URL:** <https://forum.juce.com/t/are-there-known-hosts-in-2020-that-dont-reliably-set-isnonrealtime-flag/40692>\
**Category:** General JUCE discussion\
**Created:** [July 13, 2020, 12:18pm UTC](https://forum.juce.com/t/are-there-known-hosts-in-2020-that-dont-reliably-set-isnonrealtime-flag/40692 "2020-07-13T12:18:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![PluginPenguin](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/pluginpenguin/32/10203_2.png) [@PluginPenguin](https://forum.juce.com/u/PluginPenguin)\
**Post date:** [July 13, 2020, 12:18pm UTC](https://forum.juce.com/t/are-there-known-hosts-in-2020-that-dont-reliably-set-isnonrealtime-flag/40692/1 "2020-07-13T12:18:44Z")

</div>

We are working on a plugin that offloads some heavier computation tasks that might occur on parameter changes to a background thread and applies the new processing parameters derived on the background thread to the processing as soon as possible. While this works fast enough for real-time playback, this will obviously fail on offline rendering. Therefore we need to have a 100% reliable way to find out if we are currently in an offline rendering situation to switch over to synchronous processing parameter computation on parameter changes.

The strategy of choice would be to query `isNonRealtime` on every processBlock callback. However I found some older threads that report some hosts not correctly setting this flag. Is that still the case in 2020 for any major host, so should we create a fallback non realtime detection mechanism such as comparing the play head timestamp with a wall clock timestamp or something like that?

---

<div class="post-metadata">

**Author:** ![otristan](https://avatars.discourse-cdn.com/v4/letter/o/f0a364/32.png) [@otristan](https://forum.juce.com/u/otristan)\
**Post date:** [July 13, 2020, 12:38pm UTC](https://forum.juce.com/t/are-there-known-hosts-in-2020-that-dont-reliably-set-isnonrealtime-flag/40692/2 "2020-07-13T12:38:47Z")

</div>

Not to my knowledge otherwise if would fail as well for any sampler that does HD streaming

---

<div class="post-metadata">

**Author:** ![daniel](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/daniel/32/790_2.png) [@daniel](https://forum.juce.com/u/daniel)\
**Post date:** [July 13, 2020, 1:14pm UTC](https://forum.juce.com/t/are-there-known-hosts-in-2020-that-dont-reliably-set-isnonrealtime-flag/40692/3 "2020-07-13T13:14:23Z")

</div>

Haven’t worked on the project for a while, but in 2018 FinalCutProX didn’t set it. I had to add a flag to always assume non-realtime in FCPX, otherwise it didn’t work.  
It was especially peculiar, because it spawns background instances to render the waveform in the background (which is a nice feature to see the applied effect in the wave profile).

Samplers are not a problem there, because FCPX doesn’t support augn generator plugins. Only aufx to apply on clips.

---

<div class="post-metadata">

**Author:** ![xenakios](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/xenakios/32/4047_2.png) [@xenakios](https://forum.juce.com/u/xenakios)\
**Post date:** [July 13, 2020, 1:22pm UTC](https://forum.juce.com/t/are-there-known-hosts-in-2020-that-dont-reliably-set-isnonrealtime-flag/40692/4 "2020-07-13T13:22:36Z")

</div>

Reaper allows the user to manually override it but IIRC the default behavior is that the offline flag is set when offline rendering.

---

<div class="post-metadata">

**Author:** ![PluginPenguin](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/pluginpenguin/32/10203_2.png) [@PluginPenguin](https://forum.juce.com/u/PluginPenguin)\
**Post date:** [July 14, 2020, 4:08pm UTC](https://forum.juce.com/t/are-there-known-hosts-in-2020-that-dont-reliably-set-isnonrealtime-flag/40692/5 "2020-07-14T16:08:37Z")

</div>

Alright, thank you for your feedback. Since FinalCut is probably not one of the major hosts of our customers we’ll go with the builtin isNonRealtime function at first…

I’ll let you know if we find hosts that don’t reliably report this!

By the way

> [@Xenakios](#):
>
> Reaper allows the user to manually override it

Why would you want to override that 🤔

---

<div class="post-metadata">

**Author:** ![xenakios](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/xenakios/32/4047_2.png) [@xenakios](https://forum.juce.com/u/xenakios)\
**Post date:** [July 14, 2020, 4:45pm UTC](https://forum.juce.com/t/are-there-known-hosts-in-2020-that-dont-reliably-set-isnonrealtime-flag/40692/6 "2020-07-14T16:45:57Z")

</div>

> [@PluginPenguin](#):
>
> Why would you want to override that 🤔

For plugins that are buggy or behave inconsistently when the offline flag is set.

---

<div class="post-metadata">

**Author:** ![PluginPenguin](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/pluginpenguin/32/10203_2.png) [@PluginPenguin](https://forum.juce.com/u/PluginPenguin)\
**Post date:** [July 14, 2020, 5:02pm UTC](https://forum.juce.com/t/are-there-known-hosts-in-2020-that-dont-reliably-set-isnonrealtime-flag/40692/7 "2020-07-14T17:02:34Z")

</div>

Host working around buggy plugins & plugins working around buggy hosts – I really love the audio software world 😅
