Topic: Version 3.5 much more demanding on CPU

Yesterday I updated to Version 3.5. I found this version seems to be much more demanding on CPU than the previous one. OK, my machine is an old Athlon XP3200, but version 3 was performing flawlessly on this hardware.

Now it is no longer possible to play more komplex compositions. If you try playing for example Chopin study op. 10 No 1 or rapid octave passages, arpeggios and so on a nasty noise will interrupt playing.

I never had this with version 3.

Re: Version 3.5 much more demanding on CPU

Yup, I confirm. Beta version of 3.5 never clicked or chopped the sound for me, but 3.5 final gives me constant crackling on fairly large latency (512 samples). That is not satisfactory.

Hard work and guts!

Re: Version 3.5 much more demanding on CPU

You're not accidently running it at a really high sampling rate, are you?
(he said, clutching at straws)

Re: Version 3.5 much more demanding on CPU

I'm not seeing any performance regression on my system -- the PI seems to average at 37, and I'm running the program at 48kHz and 128 samples for 256 voices.

"Our developers, who art in Toulouse, hallowed be thy physical-models.
Thy version 4 come, thy new instruments be done, in the computer as it is in the wood!"

Re: Version 3.5 much more demanding on CPU

512 samples, 44100 or 48000 (soundcard native) samplerate. Nope, not a really high sample rate. Starts crackling like crazy when polyphony is over 100. And I DO have a 2 GHz Intel Core2Duo.

Hard work and guts!

Re: Version 3.5 much more demanding on CPU

I did find that ASIO4ALL gives me crackels and pops once the sample buffer gets bellow 384. This wasn't an issue in version 3.05
But I also found that if I check the "Use Hardware buffer" in ASIO4ALL - they go away.
Also - my native MAudio Profire 610 ASIO drivers seem to behave nicely... so maybe it has to do with software vs. hardware buffer.... ???

M-Audio Profire 610 / Roland Fp-3 / Reaper / PianoTeq!
www.myspace.com/etalmor

Re: Version 3.5 much more demanding on CPU

It does consumes more power, but it sounds like Heaven...To my ears, vastly better than v3. Great job !

Re: Version 3.5 much more demanding on CPU

etalmor - I tried activating hardware buffer and it surely didn't have THAT MUCH clicks when over 100 poly. But it still choked on 100 poly part in my MIDI.

http://www.forum-pianoteq.com/uploads.p...hunder.mid


Try this file, people, please, and tell me your experiences!

Hard work and guts!

Re: Version 3.5 much more demanding on CPU

My machine played the file fine. It got the 34% CPU use at the most.

My set up is Athlon64 Dual Core @ 3.0Ghz

EWX 2496 @ 256 samples.

My speakers did nearly blow me away though... Should have paid attention to the title!

Re: Version 3.5 much more demanding on CPU

Kengrayfield wrote:

My speakers did nearly blow me away though... Should have paid attention to the title!

Hahaha Sorry, I should've given the heads up ^^'


BTW; is there any chance for you guys to try playing this with ASIO4ALL driver? I suspect the problem is there, and am talking to Julien about it over e-mail as we... post


My A4A settings:

512 samples (if I go below, hell awaits), latency compensation 32/32 samples, hardware buffer on (0 ms), resample 44.1->48 off, force WDM to 16-bit off.

Realted HD onboard soundcard -_-'

Last edited by EvilDragon (30-10-2009 18:53)
Hard work and guts!

Re: Version 3.5 much more demanding on CPU

EvilDragon,

I think there lies your problem: Asio4all and onboard soundcard. Though there is nothing wrong with this solution, but IMO it is not the way to go in the long run. Asio4all is still largely a software implementation, and therefore prone to many glitches.

Meanwhile, may be you can play around with the hardware buffer (I know that not every card supports it). Increasing it in conjunction with decreasing your sample rate result in more stable playing with the same response time.

Re: Version 3.5 much more demanding on CPU

Hmm, yeah it is of course always preferable to use your soundcard manufacturer's own native ASIO drivers, if they have any.
Asio4All is a last resort.

Re: Version 3.5 much more demanding on CPU

Yeah, it's my last resort, because Realtek doesn't have dedicated ASIO drivers for their chips, at least I haven't found them anywhere.

Unfortunately I have to bear with this until I save up for external soundcard... and that's gonna be one hell wait.

Last edited by EvilDragon (30-10-2009 19:10)
Hard work and guts!

Re: Version 3.5 much more demanding on CPU

I use a Core2Duo with 1.67 Ghz. I can play Pianoteq 3.5 with 192 samples, 48kHz and ASIO4ALL with hardware buffers switched off (built in Realtek sound chip). With 128 samples I hear cracklings.

Because this sound chip is crap, I normally use an Audio Kontrol 1 with native ASIO driver, again with 192 samples and 48kHz. Less samples are not possible here as well.

In both setups I have to limit the polyphony to 96. Otherwise I get CPU overloads. And I cannot see any difference to Pianoteq 3.0.5. I did not change the settings after upgrade to 3.5.

My problem ist that the Audio Kontrol driver does not work with Windows Vista or Windows 7 on my hardware. I have to stay with Windows XP.

Last edited by Moby (30-10-2009 19:45)

Re: Version 3.5 much more demanding on CPU

You couldn't expect Pianoteq to keep the same CPU usage of the first versions years ago.

I bet that if you compare CPU use of pianoteq first version and actual version, with the average computer power of people few years ago when Pianoteq first version came, you would find we still have a adequate CPU consuming software.

Today dual processor are very often. When pianoteq frist version was realised, even a single core 3,2 ghz wasn't so much often.

So I conclude this complain is not a big deal at all.

And do not try to say it's a conspiracy of Modartt and dual core manufactures...       ;-)

Last edited by Beto-Music (30-10-2009 23:32)

Re: Version 3.5 much more demanding on CPU

No, the CPU load is FINE. The drivers are what is causing the clicks.

Hard work and guts!

Re: Version 3.5 much more demanding on CPU

Dragon:

I tried 3.5 64-bit and have problems with asio4all 2.9 as well.  My issue is no sound at all.  (I get sound with mainboard direct-sound driver - but low-fi & no asio).

The issue seems to be asio4all.  I will try "use hardware buffer" later today, but that's for crackles.  I have different issue - no sound at all.

I have logged a bug with technical support, but it may not be a pianoteq bug.

As for cpu use - Pianoteq metre says "40%" on medium heavy passages, but PC task manager says "15 - 18%".  The latter is correct I believe, as I have AMD X4 Quad 2.8 (equivalent to 11.2 single).  It may be that multicore rendering is reporting cpu use of only 2 cores - hence the 40% figure.  I have loads of cpu overhead as far as I can tell.

Anyone know of an alternate asio driver for mainboard (Realtek)?

I plan to get an Asus Xonor card in a few weeks, and it's own asio will probably work better.  But, it would be nice to see a fix for asio4all in the meantime.  Xonor also has a Linux driver - which I will try at some point.  It's the pci-express version that I hope to get - my motherboard has only pciX card slots.  I had to abandon my m-audio pci card.

-Brian.

Re: Version 3.5 much more demanding on CPU

Don't buy Asus soundcards -_-' (Their motherboards aren't very good lately either.) Get external USB ones, like E-MU 0404 USB for example. Those have very good low latency drivers.

Also, AMD "equivalent" is not really 11.2 GHz single core That's just a marketing gimmick, don't buy it.


Thanks for the info - the issue really seems to be A4A.

Last edited by EvilDragon (01-11-2009 15:03)
Hard work and guts!

Re: Version 3.5 much more demanding on CPU

EvilDragon wrote:

Thanks for the info - the issue really seems to be A4A.

ASIO4ALL may be the cause of your seemingly severe problems on 3.5, but there definitely *is* a higher CPU usage than for 3.0.x. 

The Native Instruments Rachmaninoff MIDI file (Rhapsody?) played perfectly fine on 3.0.5 with a CPU spike of about 57 (PTQ's on-screen monitor).  This is on my Pentium M 1.86GHz.  With 3.5, the same piece in the heaviest middle section hovers around 75-80 and spikes at 95 with loud crackles/DURRR noises.

This piece is however an extreme example and over-pedalled all the way through, I guess because it was recorded using the NI software which faked sympathetic resonance. Brahms' Rhapsody No 1 causes me some problems (my own playing) but it's hardly noticeable.

Anyway, I was waiting until PTQ Pro came out before I upgraded my dinosaur PC and now that I see I don't need a Core i7 system, I'll buy a Core2 Quad Q8300 while they're still available and this is obviously more than capable of the task.

Best//Neil

Re: Version 3.5 much more demanding on CPU

I'm using Pianoteq 3.5 on a Linux Fedora/PlanetCCRMA system using PlanetCCRMA's rt-kernel and jack audio system.

My Pentium IV laptop is a little bit outdated to get zero x-run performance.
I can't get crackle-free sound if I want at the same time the smallest latency and vice versa. I want a new computer one day, but I'll wait for Intel i7/i5 technology to be available and affordable on laptops.

For the time being I can live with a little bit of crackling in my sound.

Which brings me to the following question: how good do linux systems (Fedora/PlanetCCRMA, Ubuntu Studio ?) , with rt-kernel and jack audio system, perform compared to Windows systems and drivers running on the same or similar hardware and processors ? I can't compare, since I don't have a Windows box.

Re: Version 3.5 much more demanding on CPU

m.tarenskeen wrote:

I want a new computer one day, but I'll wait for Intel i7/i5 technology to be available and affordable on laptops.

For the time being I can live with a little bit of crackling in my sound.

Now is actually a very good time to shop around for a system--lots of retailers have Vista systems with dual core chips for about a fourth of what a new system would cost. Floor models and refurbished systems are even lower in price. I bought an HP slimline that had a scratch on the front panel--the only flaw--for $220 at MicroCenter. I understand that you may not want a Windows system, but you could take a similar system, wipe the hard disk, and install Linux, and have a system that was very capable for running PianoTeq.

Re: Version 3.5 much more demanding on CPU

I too have more problems with crackling than with the previous version, but the main reason in my case is the ASIO driver of my Tascam US-122 that takes 12-13% cpu just looping idle on my AMD dual core. If the driver and pianoteq run on the same core, the driver might get interrupted more often, resulting in audio crackles.

In previous versions, it seems I had somehow a better chance of the driver starting on a different core than pianoteq itself, resulting in a better balanced system, but with 3.5, most of the time they are on the same core, maybe due to a different order of thread launching by pianoteq.

I tried running pianoteq alone or starting the Tascam user interface first but nothing is working all the time.

Now, I know AMD is much worse than Intel in balancing threads even if I already run the optimisation furnished by AMD, but I wonder if it would not be possible somehow to FORCE the ASIO driver to start on a different core when available.

The driver and pianoteq are in a client-server situation and I think this would improve things for everybody anyway.

I don't have this problem with my other card (Audigy 2ZS) since everything seems done in hardware, no cpu usage is visible.

I haven't done any multi-thread programming, and maybe this is not possible in a general way and has to be left to the destination hardware to decide, but I would appreciate if Julien could shed some light into this.

Re: Version 3.5 much more demanding on CPU

We have released a 3.5.1 update that improves (a bit) multicore-rendering on windows with high cpu loads. But it is true that v3.5 uses more cpu than version 3.0.

Something that is very important with modern cpus is to make sure that the cpu frequency throttling (that is when the cpu lowers its frequency to reduce power usage) is disabled. In Vista, setting the power management setting on "high-performance" should disable it.

An utility that can be used to check the cpu frequency in real-time is rmclock ( http://cpu.rightmark.org/products/rmclock.shtml )

Gilles: you might want to try that: http://www.tomstricks.com/how-to-set-pr...s-vistaxp/ but I'm not sure if it will help a lot, if you lock the pianoteq process on one core, then you won't get any benefit from multicore rendering

Re: Version 3.5 much more demanding on CPU

julien wrote:

Gilles: you might want to try that: http://www.tomstricks.com/how-to-set-pr...s-vistaxp/ but I'm not sure if it will help a lot, if you lock the pianoteq process on one core, then you won't get any benefit from multicore rendering

Thanks for the advice, but you are right, it is worse when locking to one cpu. The problem is there is only one pianoteq process running and the loop that takes too much resource in my case is probably a thread inside the process, part of the Tascam ASIO driver.

Sometimes this thread gets launched on the other cpu and that helps very much, but I have no control on the thread assignement.

Of course this might be because the Tascam driver is badly written and shouldn't have such a loop, but I can't update it since Tascam doesn't sell the US-122 any more, and ASIO4ALL doesn't seem to be a very good choice.

If the ASIO driver was launched as a different process, then I would be able to lock it after launch but there would probably be a performance penalty with interprocess communication.

Last edited by Gilles (05-11-2009 21:26)

Re: Version 3.5 much more demanding on CPU

Julien,

Can I reinstall the 3.05 version over the 3.5 to get rid of the crackling and noise again?

I will get a new machine in a couple of weeks but want to use Pianoteq for the time being as it was before on my outdated CPU.

Last edited by stuenn (06-11-2009 14:54)

Re: Version 3.5 much more demanding on CPU

You can have both 3.5 and 3.0.5. installed in different directories. Some DAWs won't see both VST DLLs, though.

Hard work and guts!

Re: Version 3.5 much more demanding on CPU

Giles,

Did you try using the latest driver for the more recent Tascam US-144? The two machines are very similar. Just guessing, here. Might, but just might, work.

Re: Version 3.5 much more demanding on CPU

Jake Johnson wrote:

Giles,

Did you try using the latest driver for the more recent Tascam US-144? The two machines are very similar. Just guessing, here. Might, but just might, work.

I looked into it, and the US-122L and US-144 use a completely different driver numbering scheme than the obsolete US-122, so I guess they would not be compatible since the newer models support 96kHz samples while the US-122 is limited to 48kHz. Even these models are now obsolete, having been replaced by a "MKII" version.

The Tascam drivers are annoyingly complicated to install and I wouldn't try it unless I have a really good reason...

I did find (by googling) that a newer driver (3.4.0) exist for the US-122 but it reportedly only adds Vista support which I don't need.

Tascam is not very reputable for software support, having completely stopped selling GigaStudio, which was the reason I had bought the US-122 in the first place...I have to live with my choice for the time being since I find that the 24 bit US-122 sounds very good with pianoteq, better in fact than the other card I have, the Audigy 2ZS.

Last edited by Gilles (06-11-2009 16:02)

Re: Version 3.5 much more demanding on CPU

EvilDragon wrote:

No, the CPU load is FINE. The drivers are what is causing the clicks.

What system are you on? I am on OS X 10.5.8, I can have 64 sample buffer in Login Pro 8 but must have 256 in PTQ and even then... clearly something is wrong with PTQ on Mac/Core audio, IMHO, send quite a few bug reports about this.

And I don't notice any performance difference at all between 3.0 and 3.5

Last edited by nutela (06-11-2009 17:48)

Re: Version 3.5 much more demanding on CPU

Windows XP SP2, Intel Core2Duo 2.0 GHz, 2 GB DDR2 RAM. ASIO4ALL is the issue.

3.5.1 Pro behaves much better now.

Hard work and guts!

Re: Version 3.5 much more demanding on CPU

i am working on Cubase SX 3.1.944

i had the same problem with 3.5.0 about presets savaing, sometimes, with earlier projects made with 3.0

i told it to Modartt and Julien Pommier asked me to try an upgrade, and the problem of presets is gone, but like other here :

much more CPU charge with the same song.

So for now, mabe one temporary solution :

- Reinstalling the v 3.5.0
- open a song made with 3.0 but not saved with the 3.5, so having the right preset the first time. Then, save the FXP preset separatly
- unload the pianiteq plugin of the slot
- save the song without Pianoteq
- open the song
- choose Pianoteq 3.5.0 in the empty slot, and take the right FXP from the drive
- save the song
- open the song : the right preset is good, and the CPU charge is OK.

Ondist and Thereminist concertist and composer
Ondes Martenot, Ondéa, Thérémin, player, composer
Messiaen's Turangalîla-Symphony in Cubase with 10 VSTi (including 4 instances of Pianoteq)

Re: Version 3.5 much more demanding on CPU

julien wrote:

An utility that can be used to check the cpu frequency in real-time is rmclock ( http://cpu.rightmark.org/products/rmclock.shtml )

Gilles: you might want to try that: http://www.tomstricks.com/how-to-set-pr...s-vistaxp/ but I'm not sure if it will help a lot, if you lock the pianoteq process on one core, then you won't get any benefit from multicore rendering

I think I have found a workaround for my dual core balance problem but I find it a bit puzzling.

I first launch the US-122 control panel which starts running under a standard process known as run32dll.exe, then I use its guitar tuning function which puts it in a loop waiting for guitar input, then I set the processor affinity of the run32dll.exe process to cpu 0 EVEN if it already runs on cpu 1.

After that, I launch pianoteq and it starts running on cpu 0 and I get my balanced system where I have both cores running equally, and I get no crackles. I then have to quit the US-122 control panel with the ok button, or it will go on waiting for guitar input forever...

This doesn't work if I don't lock rundll32.exe or try to lock it to cpu 1 where it is already running, pianoteq then, most of the times, starts also on cpu 1...the other running tasks don't seem to have any effect on this behaviour.

The only explanation I can think of is that, on my hardware, Windows mostly uses cpu 0 and the system has a tendency to start cpu intensive processes on cpu 1 first. By starting first the driver loop, the system then uses cpu 0 as a first choice for pianoteq which comes later. But why it work only by setting this false affinity for the rundll32.exe is beyond me! The driver loop STAYS on cpu 1 it doesn't move to cpu 0.

Re: Version 3.5 much more demanding on CPU

I had previously tried an earlier demo version on my laptop and it seemed to work ok so I purchased the latest 3.5 with the idea of using it with a CME UKeys controller as a hotel room travelling piano.

I can get PianoTeq running on my Samsung NC20 with VIA NANO U2250 processor 1.6 GHz, however, it can't come close to playing the thunder file (which my home PC  -- Pentium D 2.8 Ghz -- plays just fine).

Any help on tweaking for maximum performance would be appreciated.

Re: Version 3.5 much more demanding on CPU

theJourney:

Have you tried the usual experiments with increasing the number of buffers for the sound card?

Something else you might try: A few months ago, someone posted that he was getting surprisingly good sound with the PTeq sample rate reduced to 2200. You'll notice some loss of quality, but not as much as you might expect,and it might be viable for playing in the hotel room late at night.

Re: Version 3.5 much more demanding on CPU

Jake Johnson wrote:

theJourney:

Have you tried the usual experiments with increasing the number of buffers for the sound card?

Something else you might try: A few months ago, someone posted that he was getting surprisingly good sound with the PTeq sample rate reduced to 2200. You'll notice some loss of quality, but not as much as you might expect,and it might be viable for playing in the hotel room late at night.


I must admit I am a bit of a novice.
Especially understanding the relationship between Pianoteq settings, asioall settings, my sound card etc. 

For example, I try to change some parameters but the changes don't take.

Also, why can I not use Pianoteq together with other applications that produce sound?

Re: Version 3.5 much more demanding on CPU

The general rule is to increase the buffers until the latency is unaccepatable. (The buffers hold data\samples into short term memory, so they can be played rapidly). But at some point, increasing them will start to cause too great a latency, since the system has to load the samples into them. There's no rule about the correct number--you have to experiment. The goal is to find the least number possible. Just start with very high settings, listen to the results (high latency) and then reduce them stepwise until you reach the point at which you get break-ups, and then back-up one step.

But if you have a problem with other sound software not producing sounds while you play Pianoteq, the problem is probably that the internal card just won't let you use both sound sources at once. Can you play two other sound-based programs at once? That shouldn't happen. Assuming your on a Windows machine, did you open the Mixing panel? Something there may be muted or reduced in volume.

Regardless, you may want to invest in one of the several relatively inexpensive external usb or firewire sound cards. They start at around $150, fit in a briefcase or satchel, and produce much better and much louder (2-3X) the sound.

But think about what specs you want. Most have at least one input and output jacks, so that, when you're at home, you could plug in other several other instruments as well and\or run lines to powered monitors. The more inputs, the better. Some have mics inputs. Most, to use a mic for a vocal or recording an acoustic guitar, etc, require that you use an additional amplified mixing board. (These are also readily available, small, and inexpensive, and you could get one later, after you get the basic setup.)

Last edited by Jake Johnson (20-11-2009 17:26)

Re: Version 3.5 much more demanding on CPU

Here's a 3.5.1 performance update, particularly for Mac users.

I used Glenn's link to a HUGE version of Mozart's Turkish March  as a test. (Mozart evidently came back to life in 1860 lol). See the Forum thread "Pianoteq Workout".   It gets to a polyphony of just over 100 a couple times

Mac  early 2008 8-core 2.8 GHz, lots of RAM  OS 10.5.8. Coming out of internal digital toslink.

Pianoteq 3.5.1 (standard) in stand alone mode.  C3  Recording preset

max polyphony 128,   48K sample rate (96K host).

@ 64 samples no multi-core rendering, the file squawked and scratched and was useless.


@64 samples again  but with  multi-core checked, the file played better than single core, but still had too many scratches to be workable.
 
@128 samples buffer it played back fine  with or w/o multi-core.

The only way I could get the file to play @64 samples was to use multi-core, internal sample rate @19200, and max polyphony @64, and it worked, but crackled alot.

The lesson is that buffer size is by far the greatest determiner of performance, in my setup at least.  Multi-core rendering seems to make only minor difference on a Mac, although I hope it would help when Pianoteq is used as a plugin.  Of course, the preset could be tweaked to bring down CPU usage.  Once a MIDI file is made, I'll increase the buffer size

3.5 is  a hog, but I like the sound very much in my initial use of it.