Latency question

Author
Geoffrey
Max Output Level: -88 dBFS
  • Total Posts : 124
  • Joined: 2009/09/12 14:11:21
  • Status: offline
2014/01/20 17:39:56 (permalink)

Latency question

I'm running x1 on an I7 with 16 gigs of ram and two hard drives.  Although I haven't measured it, the latency when I try real time monitoring of inputs or softsynths, is much higher than the ms displayed on the latency setting in preferences.  When I put it down to the minimum (about 2 ms) it is still audible, and when I put it higher, the echo seems much greater than what it is saying.  When I run a softsynth at this setting, with other tracks, my system starts glitching.  Is the number there just a "serving suggestion?"  (approximation).  Are there other settings I'm missing that could bring my latency down? 
PLUS: I'm getting an editional wierd latency when I start recording: set the latency to 2 ms, play something into kontact on the keyboard, and after a bit a huge latency is introduced, even though initially it was responding quickly ?!?
Thanks!
post edited by Geoffrey - 2014/01/20 17:46:14
#1

17 Replies Related Threads

    brconflict
    Max Output Level: -56.5 dBFS
    • Total Posts : 1891
    • Joined: 2012/10/05 21:28:30
    • Status: offline
    Re: Latency question 2014/01/20 18:14:38 (permalink)
    Just a guess, but your msec Offset only corrects the inbound latency to your project (based solely on the input latency of your DAW to Sonar). I don't think this helps your outbound Echo-button monitoring latency to your mixer or external speakers/headphones, for example.
     
    Try disabling all your other plug-ins except any you use for this MIDI channel, and see if that helps the latency.
     

    Brian
     
    Sonar Platinum, Steinberg Wavelab Pro 9, MOTU 24CoreIO w/ low-slew OP-AMP mods and BLA external clock, True P8, Audient ASP008, API 512c, Chandler Germ500, Summit 2ba-221, GAP Pre-73, Peluso 22251, Peluso 2247LE, Mackie HR824, Polk Audio SRS-SDA 2.3tl w/upgraded Soniccraft crossovers and Goertz cables, powered by Pass-X350. All wiring Star-Quad XLR or Monster Cable. Power by Monster Power Signature AVS2000 voltage stabilizer and Signature Pro Power 5100 PowerCenter on a 20A isolation shielded circuit.
    #2
    mettelus
    Max Output Level: -22 dBFS
    • Total Posts : 5321
    • Joined: 2005/08/05 03:19:25
    • Location: Maryland, USA
    • Status: offline
    Re: Latency question 2014/01/20 18:17:07 (permalink)
    Another quick question... what driver mode are you running (ASIO with drivers specific to your hardware is highly preferred, WDM is a close second... any others with see delays as you speak of)?

    ASUS ROG Maximus X Hero (Wi-Fi AC), i7-8700k, 16GB RAM, GTX-1070Ti, Win 10 Pro, Saffire PRO 24 DSP, A-300 PRO, plus numerous gadgets and gizmos that make or manipulate sound in some way.
    #3
    gswitz
    Max Output Level: -18.5 dBFS
    • Total Posts : 5694
    • Joined: 2007/06/16 07:17:14
    • Location: Richmond Virginia USA
    • Status: offline
    Re: Latency question 2014/01/20 18:30:00 (permalink)
    You probably know this, but when assessing latency, it's a good idea to hit the 'by-pass all fx' button on the control bar (Letter E is the keyboard shortcut).
     

    StudioCat > I use Windows 10 and Sonar Platinum. I have a touch screen.
    I make some videos. This one shows how to do a physical loopback on the RME UCX to get many more equalizer nodes.
    #4
    Geoffrey
    Max Output Level: -88 dBFS
    • Total Posts : 124
    • Joined: 2009/09/12 14:11:21
    • Status: offline
    Re: Latency question 2014/01/20 21:47:33 (permalink)
    I don't have any effects running, I don't think.  When I look at driver mode, it's showing WDM/KS.  For some reason, there is no ASIO showing up for my card (MOTU 24/i with motu internal card).   There is an ASIO, but it appears to be ASIOforall that I might have installed at some time, which is refusing to load with my sound card.  Shouldn't MOTU specific drivers be showing up?  Or maybe MOTU doesn't use ASIO?
    #5
    Vastman
    Max Output Level: -50 dBFS
    • Total Posts : 2508
    • Joined: 2006/08/30 02:49:18
    • Location: Oakland, CA
    • Status: offline
    Re: Latency question 2014/01/20 21:53:59 (permalink)
    Geoffey, please take a moment to add a sig including complete system specs, like you see below...which will aid in all reflections/future discussions...
     
    ASIO4all is known to cause problems and should be removed to a backup folder...  the latest motu ASIO drivers should be available on their website...

    Dana
    We make the future... Climate Change Music
    VastMaschine:SP4L/W10/i74930K/32GB/RME/CAD E100s; The Orchestra! NOVO!/Inspire/BohemianViolin&Cello, ARK1&2,/MinimalCapriccioMaximoSoto/OE1&2, Action&Emotive/Omni2/Tril/RMX/All OrangeTree/Falcon/APE Jugs/Alpha&Bravo/BFD3 & SD3
    Gravity/DM307/AEON/DM/Damage/Diva/HZebra/Hive/Diversion/VC4/Serum/Alchemy/blablabla
    Spitfire/8DIO/SL/KH/EW/NI; Shred1&2/AGF,G,M&T Torch&Res&Ren/GD-6; Ibanez SR1200&SR505
    NOVAX FanFret Tele&Strat 
    #6
    robert_e_bone
    Moderator
    • Total Posts : 8968
    • Joined: 2007/12/26 22:09:28
    • Location: Palatine, IL
    • Status: offline
    Re: Latency question 2014/01/20 23:34:46 (permalink)
    +1 on removing ASIO4ALL, since you have an audio interface, which should have ASIO drivers of its own.
     
    I recommend you switch your driver mode to ASIO, and point Sonar to use your audio interface.  If ASIO4ALL was removed prior to switching to ASIO, then I believe Sonar will automatically find and assign your dedicated audio interface, if you click Apply after switching to ASIO driver mode.
     
    I think you will find instantaneous relief from your latency issues, once you switch to your interface and ASIO.
     
    I suggest settings as follows, as a reasonable starting point:
     
    Audio interface: Sample Rate of either 44.1 k or 48 k, ASIO Buffer Size of 128
    Sonar: Driver mode of ASIO, Sample Rate set to match what you set your interface to (44.1 k or 48 k), Record Bit-Depth of 24 bits.
     
    In my opinion, you want to end up at or just under a total roundtrip latency in Sonar of 10 milliseconds.  That number is a reasonable balance.
     
    The above is predicated on your having previously installed your audio interface drivers, (sorry - had to mention that)
     
    Hope that helps, 
     
    Bob Bone
     

    Wisdom is a giant accumulation of "DOH!"
     
    Sonar: Platinum (x64), X3 (x64) 
    Audio Interfaces: AudioBox 1818VSL, Steinberg UR-22
    Computers: 1) i7-2600 k, 32 GB RAM, Windows 8.1 Pro x64 & 2) AMD A-10 7850 32 GB RAM Windows 10 Pro x64
    Soft Synths: NI Komplete 8 Ultimate, Arturia V Collection, many others
    MIDI Controllers: M-Audio Axiom Pro 61, Keystation 88es
    Settings: 24-Bit, Sample Rate 48k, ASIO Buffer Size 128, Total Round Trip Latency 9.7 ms  
    #7
    mettelus
    Max Output Level: -22 dBFS
    • Total Posts : 5321
    • Joined: 2005/08/05 03:19:25
    • Location: Maryland, USA
    • Status: offline
    Re: Latency question 2014/01/21 07:16:03 (permalink)
    +1 to the above for getting rid of ASIO4all. Some have good luck with it, and others have had terrible experiences (like me). It is essentially a WDM "wrapper" for software to "see" ASIO when it is not available, but even having it installed can conflict with other (true) drivers. I took another's advice from long ago and uninstalled those completely and forgot I ever saw them.
     
    Check out MOTU's site (http://www.motu.com/download) and get the ASIO drivers from them for your hardware. Drivers specific to your hardware are always preferred over anything else.
     
    In addition to Bob's advice for setting ASIO latency to 128 initially (Preferences->Audio->Driver Settings->ASIO
    Panel...), do a quick check on your I/O buffers as well (Advanced Mode:Preferences->Audio->Synch and Caching). It should be defaulting to 256 for both input/output, which should be fine for most cases. I set mine to 512 for larger projects and left it there because it is sufficient for just about everything I do.
     
    Final quick check... in case you have on-board audio as well, Windows can be flaky about seeing an audio interface come online and "grab it" as soon as it does. The only way I have found to override this behavior is to have both onboard audio and the audio interface powered on and go into "Change Sound Card Settings" in Windows. Both should show up at that point, and setting the onboard audio specifically to default (can assign the interface first, and then assign the onboard audio) will force Windows to ignore the ASIO audio interface when it powers on/off (so that SONAR can use it freely). ASIO is "exclusive" so Windows grabbing that interface when it sees it can cause issues.

    ASUS ROG Maximus X Hero (Wi-Fi AC), i7-8700k, 16GB RAM, GTX-1070Ti, Win 10 Pro, Saffire PRO 24 DSP, A-300 PRO, plus numerous gadgets and gizmos that make or manipulate sound in some way.
    #8
    robert_e_bone
    Moderator
    • Total Posts : 8968
    • Joined: 2007/12/26 22:09:28
    • Location: Palatine, IL
    • Status: offline
    Re: Latency question 2014/01/21 13:51:20 (permalink)
    I actually have Windows sounds turned off, but do have the default Windows audio device set to the on-board sound chip, rather than the audio interface.
     
    I then set each audio application that I want to have use the audio interface, to explicitly use the audio interface, and all other applications, such as Windows Media Player, use the default on-board sound.
     
    This way, no Windows conflicts arise, and it works well for me, plus, I can have WMP playing while my Sonar is up and running, in case I need to do that, and there is no problem with doing that.
     
    Bob Bone
     

    Wisdom is a giant accumulation of "DOH!"
     
    Sonar: Platinum (x64), X3 (x64) 
    Audio Interfaces: AudioBox 1818VSL, Steinberg UR-22
    Computers: 1) i7-2600 k, 32 GB RAM, Windows 8.1 Pro x64 & 2) AMD A-10 7850 32 GB RAM Windows 10 Pro x64
    Soft Synths: NI Komplete 8 Ultimate, Arturia V Collection, many others
    MIDI Controllers: M-Audio Axiom Pro 61, Keystation 88es
    Settings: 24-Bit, Sample Rate 48k, ASIO Buffer Size 128, Total Round Trip Latency 9.7 ms  
    #9
    robert_e_bone
    Moderator
    • Total Posts : 8968
    • Joined: 2007/12/26 22:09:28
    • Location: Palatine, IL
    • Status: offline
    Re: Latency question 2014/01/21 13:51:20 (permalink)
    Duplicate
    post edited by robert_e_bone - 2014/01/21 14:05:19

    Wisdom is a giant accumulation of "DOH!"
     
    Sonar: Platinum (x64), X3 (x64) 
    Audio Interfaces: AudioBox 1818VSL, Steinberg UR-22
    Computers: 1) i7-2600 k, 32 GB RAM, Windows 8.1 Pro x64 & 2) AMD A-10 7850 32 GB RAM Windows 10 Pro x64
    Soft Synths: NI Komplete 8 Ultimate, Arturia V Collection, many others
    MIDI Controllers: M-Audio Axiom Pro 61, Keystation 88es
    Settings: 24-Bit, Sample Rate 48k, ASIO Buffer Size 128, Total Round Trip Latency 9.7 ms  
    #10
    Geoffrey
    Max Output Level: -88 dBFS
    • Total Posts : 124
    • Joined: 2009/09/12 14:11:21
    • Status: offline
    Re: Latency question 2014/01/22 11:51:16 (permalink)
    I removed asio4all from windows, and installed the latest MOTU drivers.  Here's what happens: it still defaults to WDM drivers.  When I try to set it to ASIO, it says my audio card (MOTO PCI 424) is unavailable.   In other words, it is acting as if MOTU doesn't provide ASIO, although on their site they say (if I remember correctly) it does. 
    NOTE: I noticed the following: when I try to record a softsynth in real time, there is low latency until it glitches, and at that point it induces a large latency.  Don't know why.  I think it can handle it when I don't try to record simultaneously a bunch of tracks, which would imply drive overload(?).  I have two drives, I7, 16 gigs of ram, the performance meter is barely budging.  I don't have enough of a technical background to understand how this is happening. 
    #11
    robert_e_bone
    Moderator
    • Total Posts : 8968
    • Joined: 2007/12/26 22:09:28
    • Location: Palatine, IL
    • Status: offline
    Re: Latency question 2014/01/22 12:08:55 (permalink)
    It has been quite a while since I did this - perhaps you need to de-select the input/output audio devices, in Preferences>Audio>Devices, and THEN go to Preferences>Audio>Playback and Recording and change the driver mode from WDM to ASIO.  THen click Apply, and if I recall correctly, then Sonar will automatically populate your input and output timing master settings to those of your audio interface.
     
    I hope I recall the above properly, and apologies if not.  It has been a long number of years since I used WDM drivers.
     
    Please try the above and post back, 
     
    Bob Bone
     

    Wisdom is a giant accumulation of "DOH!"
     
    Sonar: Platinum (x64), X3 (x64) 
    Audio Interfaces: AudioBox 1818VSL, Steinberg UR-22
    Computers: 1) i7-2600 k, 32 GB RAM, Windows 8.1 Pro x64 & 2) AMD A-10 7850 32 GB RAM Windows 10 Pro x64
    Soft Synths: NI Komplete 8 Ultimate, Arturia V Collection, many others
    MIDI Controllers: M-Audio Axiom Pro 61, Keystation 88es
    Settings: 24-Bit, Sample Rate 48k, ASIO Buffer Size 128, Total Round Trip Latency 9.7 ms  
    #12
    Geoffrey
    Max Output Level: -88 dBFS
    • Total Posts : 124
    • Joined: 2009/09/12 14:11:21
    • Status: offline
    Re: Latency question 2014/01/22 21:48:05 (permalink)
    Mr Bone, you are indeed God, as you were correct, that was the magic trick.  There was no way I could have guessed this on my own.  ASIO seems noisier,  but it may be that it has a higher output, and it is my preamps.  I'll run more tests on latency etc. and post back.
    #13
    robert_e_bone
    Moderator
    • Total Posts : 8968
    • Joined: 2007/12/26 22:09:28
    • Location: Palatine, IL
    • Status: offline
    Re: Latency question 2014/01/23 00:28:54 (permalink)
    Thank you for the kind words - but I cannot take the credit for creating Heaven and Earth.  Glad you are up and running with it now.
     
    I would suggest the following settings, for a starting point:
     
    ASIO Buffer Size: 128
    Sample Rate (both Sonar and interface must match on this): either 44.1 k or 48 k
    Sonar Record Bit-Depth: 24-bit
     
    I would suggest you shoot for at or just under around 10 milliseconds of total roundtrip latency, as reported in Sonar Preferences.
     
    The above settings should give you a reasonable balance of it all, though you may have to increase your Record and Playback I/O Buffer sizes from the default of 256 up to 512 - but only worry about that if you still have trouble with the above settings.
     
    Bob Bone
     

    Wisdom is a giant accumulation of "DOH!"
     
    Sonar: Platinum (x64), X3 (x64) 
    Audio Interfaces: AudioBox 1818VSL, Steinberg UR-22
    Computers: 1) i7-2600 k, 32 GB RAM, Windows 8.1 Pro x64 & 2) AMD A-10 7850 32 GB RAM Windows 10 Pro x64
    Soft Synths: NI Komplete 8 Ultimate, Arturia V Collection, many others
    MIDI Controllers: M-Audio Axiom Pro 61, Keystation 88es
    Settings: 24-Bit, Sample Rate 48k, ASIO Buffer Size 128, Total Round Trip Latency 9.7 ms  
    #14
    mettelus
    Max Output Level: -22 dBFS
    • Total Posts : 5321
    • Joined: 2005/08/05 03:19:25
    • Location: Maryland, USA
    • Status: offline
    Re: Latency question 2014/01/23 00:55:09 (permalink)
    +1 Bob is a great guy!
     
    Now that we have you in the best driver mode and running, take a look at these preference options and see where they are set (Edit->Preferences):
     
    Audio->Devices: You should not be seeing a list of your ASIO devices, and to optimize your system, should only check the ones you are actually using (I typically leave mine as 2in/2out and leave the remainder unchecked).
     
    Audio->Driver Settings:
    Timing Masters: Be sure the two "Timing Masters" are assigned to your MOTU. This should happen automatically when switching to ASIO mode, but I have seen a couple instances where it did not.
     
    The "ASIO Panel" button at the bottom is where you will want to set bit-depth, sampling rate, and ASIO latency. For my interface, I have found that it does run smoother when that panel is open while using SONAR, but this is not universal so is something else to check. I would start with something relatively "tame" and choose 24 bit, 44.1kHz sampling rate, and ASIO at 128. Verify that these correspond to the values on that Preferences tab (the only one you can probably adjust in ASIO mode is Sampling rate (the Audio Driver bit depth and Buffer Size slider will probably be greyed out). Note - some ASIO panels "lock" to SONAR, so you may need to do adjustments with this ASIO panel open, but SONAR closed, and then open SONAR and verify that the Audio->Driver Settings do match.
     
    Sync and Caching (Advanced mode at the bottom): The I/O Buffer sizes near the bottom you will want to check and do this in tandem with the ASIO latency mentioned above (start with 512 for both of these)....
     
    Increasing ASIO latency will reduce pops/crackles, but increase latency. Start at 128 for ASIO, and 512 for both I/O buffers. If you are still getting pops crackles, you may have to adjust to find the sweet spot:
     
    1. Try adjusting I/O buffers (Advanced Mode: Preferences->Audio->Synch and Caching) both up and down until happy. 256 jumps should do.
    2. If after trying all sizes up to 1024 you still have issues with playback, increase the ASIO latency to the next setting (Preferences->Audio->Driver Settings->ASIO Panel...) and go back to step 1 and repeat the I/O buffer adjustment.
    3. Repeat as necessary until you find the "magic" combination for your setup.
     
    Edit: Bob posted before me, I am glad our recommendations match!

    ASUS ROG Maximus X Hero (Wi-Fi AC), i7-8700k, 16GB RAM, GTX-1070Ti, Win 10 Pro, Saffire PRO 24 DSP, A-300 PRO, plus numerous gadgets and gizmos that make or manipulate sound in some way.
    #15
    Geoffrey
    Max Output Level: -88 dBFS
    • Total Posts : 124
    • Joined: 2009/09/12 14:11:21
    • Status: offline
    Re: Latency question 2014/01/23 21:22:41 (permalink)
    Thanks.  The defaults that MOTU set are pretty much what you recommend, except 256 for playback and record buffers instead of 512, but it seems to be running fine.  If I run into trouble I can experiment.  Just out of curiousity, what is the relationship between the three buffer settings:mixing, playback and recording?
    Geoff
    #16
    mettelus
    Max Output Level: -22 dBFS
    • Total Posts : 5321
    • Joined: 2005/08/05 03:19:25
    • Location: Maryland, USA
    • Status: offline
    Re: Latency question 2014/01/23 22:09:58 (permalink)
    The mixing latency is the audio buffer and is the round trip (digital delay) from your interface to SONAR and back out. This is important when you are using soft synth or monitoring from within SONAR itself (i.e. "real time" recording). Higher settings put less strain on your system, but increase the delay between your interface and SONAR (which can be noticeable if too high or using another mode other than ASIO). Ideally, you want to set this as low as possible without getting pops/crackles.
     
    The I/O buffers (playback and recording) are buffers between your hard drive and SONAR. Too low a value may cause SONAR not to have data when it needs it and can cause drop-outs, too high a value can take too long to fill the buffer and also cause drop-outs.

    ASUS ROG Maximus X Hero (Wi-Fi AC), i7-8700k, 16GB RAM, GTX-1070Ti, Win 10 Pro, Saffire PRO 24 DSP, A-300 PRO, plus numerous gadgets and gizmos that make or manipulate sound in some way.
    #17
    robert_e_bone
    Moderator
    • Total Posts : 8968
    • Joined: 2007/12/26 22:09:28
    • Location: Palatine, IL
    • Status: offline
    Re: Latency question 2014/01/23 22:57:48 (permalink)
    @mettelus - I'm just glad I managed to match YOUR recommendations.  :)
     
    I liked your explanation of the buffers, and concur on those, as well.
     
    *edit to correct spelling*
     
    Bob Bone
     

    Wisdom is a giant accumulation of "DOH!"
     
    Sonar: Platinum (x64), X3 (x64) 
    Audio Interfaces: AudioBox 1818VSL, Steinberg UR-22
    Computers: 1) i7-2600 k, 32 GB RAM, Windows 8.1 Pro x64 & 2) AMD A-10 7850 32 GB RAM Windows 10 Pro x64
    Soft Synths: NI Komplete 8 Ultimate, Arturia V Collection, many others
    MIDI Controllers: M-Audio Axiom Pro 61, Keystation 88es
    Settings: 24-Bit, Sample Rate 48k, ASIO Buffer Size 128, Total Round Trip Latency 9.7 ms  
    #18
    Jump to:
    © 2025 APG vNext Commercial Version 5.1