Topic: Performance Index - large fluctuations warning

I have had a warning on my performance index for a while now, both on Pianoteq 6 and the new Pianoteq 7. Currently the performance index says:

48..115 (Warning: large fluctuations)

Is this relatively normal behaviour?  I’ve tried searching in the forums and the manual about this warning but it doesn’t bring much up.  Pianoteq is currently running on an i5 SurfacePro 7 which has been optimised for best performance, although I will be trying a move to a new Mac Mini M1 this week.

Any input appreciated.  Cheers.

Pianoteq 7 Pro / Surface Pro7
Kawai MP11 / Roland Integra 7 / Focusrite 18i20 3G / Genelec 8341 & 7350 SAM

Re: Performance Index - large fluctuations warning

Hi BTMASS, I haven't seen that warning but my machine does fluctuate at times (below some reasons).

[Edit to add this line] _ forgot to say check power saving mode (subject of a recent thread).

To me that might most obviously just be a suggestion that your machine is fluctuating widely in some measures, but hard to guess if it's just normal behavior for your system or something you could or should address or fix, without more detail.

Possibly something for your machine's support folks. I've known the SurfacePro line to have avid fans and dour detractors. Have not experienced one in an audio setting myself.

If you don't noticeably experience poor performance (but just see those numbers), it's quite likely just normal system processes running tasks in the background which affect the numbers in that index.

My machine fluctuates the most in 2 cases,

A - telemetry hogging disk and CPU before and/or after system updates, randomly for slabs of minutes or more at a time.. or my absolute \_'favorite'_/

B - the 'WMI Provider Host' hogging resources for a minute or two after plugging in my dpiano's USB cable. Makes one want to flip.. all the tables.

┻━┻ ︵ \\ ('0')// ︵ ┻━┻

In control panel, look into 'hardware and sound / devices and printers' and look for a warning icon (yellow triangle) on top of your larger PC icon. Maybe this will allow you a way to "troubleshoot". It can be a start, even if it's not the main issue highlighted there. 

Other than that, let us know any other symptoms or warnings you find - maybe it's simple to fix but I suspect, this kind of issue could just be due to way too many things for online troubleshooting (or at least more likely to get a quick correct answer from SurfacePro support).

Cheers!

Last edited by Qexl (23-11-2020 01:35)
Pianoteq Studio Bundle (Pro plus all instruments)  - Kawai MP11 digital piano - Yamaha HS8 monitors

Re: Performance Index - large fluctuations warning

Many thanks Qexl. 

I'll look into those issues and also see whether the Mac Mini will solve some of those.  I've always been PC-based, so it may be a tough climb this week in terms of my learning curve! 

All the best!

Pianoteq 7 Pro / Surface Pro7
Kawai MP11 / Roland Integra 7 / Focusrite 18i20 3G / Genelec 8341 & 7350 SAM

Re: Performance Index - large fluctuations warning

Some things to adjust, to check performance--

CPU frequency -- fixed, not variable or scaled
Multicore rendering -- ON
Audio interface (Options-->Devices) and internal sample rate (Options-->Perf) -- 48000 Hz or less, buffer 256 samples or more
Polyphony -- Max. 64 or less

--

In Pianoteq Options, above the performance index, you might check the "CPU frequency," and if it's listed as a range instead of a fixed frequency, you might try (if possible on a MS Surface Pro) to disable frequency scaling and see if that helps. It may also help, in that same Options pane, to turn "Multicore rendering" to ON and Maximum polyphony down to perhaps 64 or less.

Last edited by Stephen_Doonan (23-11-2020 17:28)
--
Linux, Pianoteq Pro, Organteq

Re: Performance Index - large fluctuations warning

I will give all these ideas a proper swing this week with the SurfacePro, after a very disappointing day with the new Mac Mini M1.  Suffice it to say, that will be heading back to Apple tomorrow. 

For what it's worth PT7 seemed to install fine under Rosetta 2, although the new M1 chip would not play at all with my Focusrite 18i20 audio interface.  Thus in the end I couldn't try out Pianoteq in any meaningful way.

Pianoteq 7 Pro / Surface Pro7
Kawai MP11 / Roland Integra 7 / Focusrite 18i20 3G / Genelec 8341 & 7350 SAM

Re: Performance Index - large fluctuations warning

Did you try PT7 with the built-in mini sound? It should already sound good.
Check with Focusrite if they are going to issue a fix soon. I would not give up so quickly...

BTMASS wrote:

I will give all these ideas a proper swing this week with the SurfacePro, after a very disappointing day with the new Mac Mini M1.  Suffice it to say, that will be heading back to Apple tomorrow. 

For what it's worth PT7 seemed to install fine under Rosetta 2, although the new M1 chip would not play at all with my Focusrite 18i20 audio interface.  Thus in the end I couldn't try out Pianoteq in any meaningful way.

PT 7.3 with Steinway B and D, U4 upright, YC5, Bechstein DG, Steingraeber, Ant. Petrov, Kremsegg Collection #2, Electric Pianos and Hohner Collection. http://antoinewcaron.com

Re: Performance Index - large fluctuations warning

aWc wrote:

Did you try PT7 with the built-in mini sound? It should already sound good.
Check with Focusrite if they are going to issue a fix soon. I would not give up so quickly...

Hi aWc - no I didn't try the built in mini sound as I need the multiple inputs of the Focusrite and the ADAT connection to my Genelec 8341s.  There were also issues with the mouse and keyboard (both pretty expensive Logitech beasts that I don't really want to change) as well as the touchscreen HDMI monitor I use.  I called up Apple support but their response was they couldn't offer any advice on non-Apple equipment and thus couldn't help or troubleshoot.  They did say they might be able to help on the Focusrite side if I bought Logic X though but that's not in my current plan.  It was annoying as I could see the 18i20 sitting in the Mac's USB stack but the Control software just couldn't make the connection.

I did check with Focusrite who tried a couple of workarounds but sadly to no avail.  They are hoping to look at apple silicon based machines imminently but as weren't able to get copies early to be able to introduce an update at present.  They reckon Big Sur is apparently OK so perhaps it's the M1 chip that's causing the issue.  All in all quite a frustrating few hours.

Pianoteq 7 Pro / Surface Pro7
Kawai MP11 / Roland Integra 7 / Focusrite 18i20 3G / Genelec 8341 & 7350 SAM

Re: Performance Index - large fluctuations warning

Well I seem to have it sorted out now, thank goodness. I first tried attaching my desktop PC to see if it could be a PC issue.  That also displayed a range in the performance indicator (171..192) but no fluctuation warnings.

Turned out (I think so anyway, at the moment!) that I was hoisted by my own petard.  I had set up the SurfacePro from the get go to run at 100% performance all the time and followed Molten Music’s excellent video about how to tweak the SurfacePro and force it to throw all its might at every task, rather than act like a normal tablet and try and conserve power at all costs.  As soon as I reverted to Windows 10 Balanced Power plan things started to calm down and the Fluctuation Warning disappeared.

It seems to run well at 48,000/48,000/192 with Auto (Optimistic) polyphony just fine, with a performance indicator ranging 82..122.  If there is any latency my old knackered ears can't detect it.  The variation seems more wide than my desktop PC but I’m not sure if that makes any difference or not.

Many thanks for your help everyone!

Pianoteq 7 Pro / Surface Pro7
Kawai MP11 / Roland Integra 7 / Focusrite 18i20 3G / Genelec 8341 & 7350 SAM

Re: Performance Index - large fluctuations warning

As an aside, I did get an email response from Focusrite.  I'm sure they won't mind me sharing the gist of it here:

"As discussed on the phone, the M1 processor systems are very new and as we're not given early access to them, we haven't had a lot of time to test them. But rest assured, Our QA team are thoroughly testing them!

We will update the following article when we know more:
https://support.focusrite.com/hc/en-gb/...ed-systems

That being said, have you tried the unit in your DAW? I have noticed a few people online saying that their unit does work as expected in a DAW, but Focusrite Control does not recognise it."

Pianoteq 7 Pro / Surface Pro7
Kawai MP11 / Roland Integra 7 / Focusrite 18i20 3G / Genelec 8341 & 7350 SAM

Re: Performance Index - large fluctuations warning

Well, super good news there BTMASS.

BTMASS wrote:

The variation seems more wide than my desktop PC but I’m not sure if that makes any difference or not

Should be fine - it's only a real prob if the audio is glitching - but every lappy will have limits. Amazing how such unusual things can gain us the performance we ask from our machines.

Feeling really happy for you

My thanks also to Stephen_Doonan and aWc, giving such good advice as always!

Cheers.

Pianoteq Studio Bundle (Pro plus all instruments)  - Kawai MP11 digital piano - Yamaha HS8 monitors

Re: Performance Index - large fluctuations warning

Qexl wrote:

My thanks also to Stephen_Doonan and aWc, giving such good advice as always!

Indeed and thanks to you again Qexl. 

It's a shame the Mac Mini didn't work out for me as it's a very neat little unit in terms of format and size.

Who knows in the future whether the M1 chip or a variant of it will make it's way into the iPad Pro line, which would be very attractive.

Cheers

Pianoteq 7 Pro / Surface Pro7
Kawai MP11 / Roland Integra 7 / Focusrite 18i20 3G / Genelec 8341 & 7350 SAM

Re: Performance Index - large fluctuations warning

BTMASS wrote:

Turned out (I think so anyway, at the moment!) that I was hoisted by my own petard.  I had set up the SurfacePro from the get go to run at 100% performance all the time and followed Molten Music’s excellent video about how to tweak the SurfacePro and force it to throw all its might at every task, rather than act like a normal tablet and try and conserve power at all costs.  As soon as I reverted to Windows 10 Balanced Power plan things started to calm down and the Fluctuation Warning disappeared.

In my experience the only times I have gotten such large fluctuations in performance index is with CPU scaling enabled (eg 65-124), so your report seems backward to me (though I am not arguing, I just don't understand why or how taking it out of performance mode resolved the issue!)

The warning is not dangerous. CPI just indicates how much overhead you have before CPU load. If it fluctuates overhead is unpredictable. This is a problem because no modern chipset is capable of adjusting performance without adding several (sometimes over a dozen) milliseconds of latency. That is also why multi-threading is also not recommended for latency-sensitive setups (yes, more throughput overall, but at a cost of increased latency overhead).

So moral of the story: if you have an unstable CPI, you should take the LOWEST number as the actual performance to avoid xruns in the buffer and therefore audio glitches or dropouts. (Maybe this explanation could be helpful for Modartt to include in documentation). If you take a higher number you put yourself at high risk for real-time audio rendering problems.

Re: Performance Index - large fluctuations warning

i should also add i have seen fluctuating CPI on systems that rely heavily on cpu thermal throttling (eg poor engineering on cooling system on many lightweight thin consumer systems that seem powerful according to specs) because they can't sustain max performance under load.

Re: Performance Index - large fluctuations warning

Hi ethanay - many thanks for your input and you are of course quite right in your comments.  It doesn't make any sense and that is because it’s not true… How stupid was I thinking that fix made any sense and of course the large fluctuations error came back again on the Surface Pro running in this lesser performance mode as well. I’ve actually tried most of the power profile options now, including the Molten Music profile I set up which really does make the PC work on maximum performance all the time. The problem I have encountered, however, with the Surface Pro that I have (it’s an Intel i5 model) is that it’s passively cooled with no fan and tends to get pretty toasty sitting there at full tilt all the time.

However, I have never been one to let common sense get in the way and so I purloined another laptop, this one with a fan and a relatively meaty processor (at least as far as mobile computing is concerned). I am getting exactly the same issue with the “warning large fluctuations” reminder. Currently this PC is telling me the performance index is fluctuating between 72…194 and the processor running between 1400 and 2900 MHz.  I’ve tried toggling the multicore rendering tick box on and off but that doesn’t seem to make much of a difference at all.

I’m currently running on 48000/48000/128 with auto (optimistic) and I think I can detect the very occasional little crackle. I know that many people on this board get crackle free, low latency results from quite modest systems so I am quite hoping it’s just something I need to tweak.

One quick question - from your comment “So moral of the story: if you have an unstable CPI, you should take the LOWEST number as the actual performance to avoid xruns in the buffer and therefore audio glitches or dropouts” - how can you do this? Is there anywhere in Pianoteq to limit this and keep it to the lowest number?

I guess it’s back to the drawing board for me! All the best and thanks again for your help.

Pianoteq 7 Pro / Surface Pro7
Kawai MP11 / Roland Integra 7 / Focusrite 18i20 3G / Genelec 8341 & 7350 SAM

Re: Performance Index - large fluctuations warning

BTMASS wrote:

... and the processor running between 1400 and 2900 MHz

Frequency scaling. That's something that is often turned off or on in the computer's BIOS firmware (called "Intel Speedstep" in the BIOS of my desktop comptuter). In Linux, frequency-scaling can also often be disabled using a kernel parameter specified manually or automatically at bootup, and in some cases the CPU cores' frequencies can be set to a fixed value using a userspace utility app after bootup.

I suppose laptops often depend more than desktop computers on CPU frequency scaling, for the sake of keeping cool and to conserve the battery, but frequency-scaling does often affect real-time audio use.

You might try an internet search using "frequency scaling" and your tablet or laptop brand and model, to see if you can turn it off, at least temporarily, and see if that helps.

Last edited by Stephen_Doonan (26-11-2020 21:59)
--
Linux, Pianoteq Pro, Organteq

Re: Performance Index - large fluctuations warning

yes, this issue on the Surface sounds to me like a combination of CPU frequency scaling enabled and also passive cooling.

The issue on the new laptop is common with frequency scaling alone. As I said, modern CPUs to my knowledge just can't ramp up their speed fast enough for low latency applications, and the overhead creates a delay that causes buffer overruns.

Re: the CPI, I mean in terms of setting your performance parameters, if you you set Pianoteq's quality settings (sampling rate, polyphony, # of microphones, etc) for real-time use so that they do not create the risk of Pianoteq's processing demand exceeding the minimum indicated on the CPI, you should be safe. This is only relevant for real-time rendering (e.g., while you are playing; not for rendering pre-recorded MIDI files into audio, which can happen outside of real-time and so there is no risk of buffer issues, so you should almost ALWAYS use highest quality settings unless you are going for a specific effect as a mixing engineer or producer...)

If you want to stabilize the processor speed (which is a good thing for real-time or low latency performance because it eliminates the overhead of the CPU takign extra cycles to scale up and down and allows it to devote those cycles to processing user input as well as giving you a more predictable and reliable low latency performance level), you need to lock the frequency at a certain speed. For quiet operation (if fan cooled) and/or battery life, choose a lower frequency. For max performance, choose a higher frequency. Can't have it all...it's a tradeoff.

I am not sure how to accomplish this on Windows 10 but I bet even if there aren't built-in tools to do this sort of performance tuning (e.g., custom power profiles that allow you to tweak the CPU performance settings) there are probably tons of 3rd party (and free) programs or apps that will help you do it. You should be able to do it dynamically in user space (e.g., after bootup and login). Any app or widget that gives you fine control over ideally both CPU min/max frequency and multi-threading (which is ideal to disable in low latency work) should suffice.

I agree with Stephen, laptops very commonly depend on cpu frequency scaling to keep the laptop cool and save battery life because the common user does not notice the milliseconds of latency when browsing/typing/listening/watching that matter to those of us using laptops for real-time or low latency processing work.

They also commonly depend on thermal throttling (which is thermally-reactive downscaling of CPU frequency) to prevent overheating. What this means is: don't expect the CPU to perform at or even near it's "max frequency" setting. For example, I had an i5 quad core ultrabook that was actively cooled via both fan and heatpipe (so, relatively very effective cooling for a small, thin laptop) that had a max frequency of 3.9ghz,  but it could only sustain ~2.2ghz for more than a few seconds at a time. Still, that locked the CPI at about 125 for me.

Part of this is another engineering tradeoff: a powerful processor running at full-tilt needs excellent cooling to run sustainably at those higher speeds. Modern thin and light laptops just don't have the space and airflow to dissipate enough heat to do that. So those "high spec" ultrabooks look good on paper, until you need them to use that high performance over an extended period of time (e.g., transcoding or compiling), then you find that they perform significantly more slowly than similarly-spec'd well-cooled desktop computers.

That should give you plenty to google (or duckduckgo if you prefer) to figure out how you need to configure your system

Re: Performance Index - large fluctuations warning

Many thanks guys!  Yes, much food for thought.  Ulp....

Pianoteq 7 Pro / Surface Pro7
Kawai MP11 / Roland Integra 7 / Focusrite 18i20 3G / Genelec 8341 & 7350 SAM

Re: Performance Index - large fluctuations warning

This has been an expensive (time wise) but elucidating experience for me.  I come from the viewpoint that more computing power always means better performance and that's clearly not the case with Pianoteq (and indeed perhaps other music creation software - I'm a newbie at all this frankly). 

I can change the power profile on the laptop to minimum 5% and maximum 5% processor power and that locks the frequency to 1400 MHz.  This gives me a steady CPI of 65.  This works for a bit and then rather annoyingly the power profile automatically changes itself.  My current take will be to return to the Surface Pro 7 i5 and see if I can make that work nicely - I only really replaced it as I thought it was having an issue due to lack of processor power and that does not seem to be the case at all.

As I say, very educational for me!

Pianoteq 7 Pro / Surface Pro7
Kawai MP11 / Roland Integra 7 / Focusrite 18i20 3G / Genelec 8341 & 7350 SAM

Re: Performance Index - large fluctuations warning

BTMASS wrote:

I can change the power profile on the laptop to minimum 5% and maximum 5% processor power and that locks the frequency to 1400 MHz.  This gives me a steady CPI of 65.  This works for a bit and then rather annoyingly the power profile automatically changes itself.  My current take will be to return to the Surface Pro 7 i5 ...

This webpage might have some relevant information--

https://www.minitool.com/news/cpu-throt...o-fix.html

--

Last edited by Stephen_Doonan (28-11-2020 16:03)
--
Linux, Pianoteq Pro, Organteq

Re: Performance Index - large fluctuations warning

Thanks Stephen.  I originally did this when I got my Surface Pro back in June.  It's a useful hack but IMO needs to be used with some caution in that forcing 100% processor usage all the time takes its toll on the hardware.  In the i5 SurfacePro's case the little guy gets very hot.  It has no fan, so is totally passively cooled.

As I say I think I'll experiment with seeing if I can lock in the CPU to a lower amount.  Maybe I can find a happy medium between acceptable performance and heat.

Last edited by BTMASS (29-11-2020 13:04)
Pianoteq 7 Pro / Surface Pro7
Kawai MP11 / Roland Integra 7 / Focusrite 18i20 3G / Genelec 8341 & 7350 SAM

Re: Performance Index - large fluctuations warning

BTMASS wrote:

Thanks Stephen.  I originally did this when I got my Surface Pro back in June.  It's a useful hack but IMO needs to be used with some caution in that forcing 100% processor usage all the time takes its toll on the hardware.  In the i5 SurfacePro's case the little guy gets very hot.  It has no fan, so is totally passively cooled.

As I say I think I'll experiment with seeing if I can lock in the CPU to a lower amount.  Maybe I can find a happy medium between acceptable performance and heat.

Regardless of the (higher) frequency you specify, the laptop may quickly downthrottle to a lower or even minimum frequency under sustained loads for thermal reasons. I would run a CPU benchmark test for 10min or so and see what the "steady sustainable" frequency is that the device can maintain under load and use that as the target frequency.

For me, when i was using a laptop, i just set it to max frequency (3.9ghz) and that translated to 2.2ghz sustained speed. so that is the understanding that i used to tune pianoteq performance for maximum possible realtime quality while avoiding xruns

Re: Performance Index - large fluctuations warning

Thanks Ethanay!

Pianoteq 7 Pro / Surface Pro7
Kawai MP11 / Roland Integra 7 / Focusrite 18i20 3G / Genelec 8341 & 7350 SAM