# Updating of nonRealtime

**URL:** https://forum.juce.com/t/updating-of-nonrealtime/19578
**Category:** Audio Plugins
**Created:** [October 21, 2016, 8:58pm UTC](https://forum.juce.com/t/updating-of-nonrealtime/19578 "2016-10-21T20:58:21Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mormegil](https://avatars.discourse-cdn.com/v4/letter/m/a87d85/32.png) [@mormegil](https://forum.juce.com/u/mormegil)
#### Post date: [October 21, 2016, 8:58pm UTC](https://forum.juce.com/t/updating-of-nonrealtime/19578/1 "2016-10-21T20:58:21Z")

</div>

Hi,

I’m trying to reliably detect if my plugin is being run real time or in offline mode. In BitWig studio isNonRealtime() was always returning false, even when doing a bounce. I was worried they weren’t notifying us, so I did some debugging and learned that juce checks for getCurrentProcessLevel == 4 to determine the mode.  
filter-\>setNonRealtime(getCurrentProcessLevel() == 4 /\* kVstProcessLevelOffline \*/);

In internalProcessReplacing juce only checks for this state during the first process callback.  
I duplicated the check to happen every frame and it fixed the issue I had with bouncing in place. Why is it the check is limited to the first callback? Am I possibly causing other issues by making this change?

Thanks!  
-Scott

---

<div class="post-metadata">

### Author: ![fr810](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fr810/32/841_2.png) [@fr810](https://forum.juce.com/u/fr810)
#### Post date: [October 27, 2016, 9:33am UTC](https://forum.juce.com/t/updating-of-nonrealtime/19578/2 "2016-10-27T09:33:27Z")

</div>

Hmmm, it’s really odd that Bitwig doesn’t call suspend/resume before bouncing. Seems wrong to me. Normally hosts call this before bouncing. Let me see if I can reach out to the guys at Bitwig…
