Skip to content

[BUG] NAM works fine at 128 samples, but eat huge cpu percentage at 256 and higher? #561

@DivannKokos

Description

@DivannKokos

Thanks for taking the time to write a bug report! Use the following prompts to help you describe what's going on. The more info you provide, the easier it'll be to understand how to fix it for you without having to come back and ask you questions.

Before you make a new bug report:

  • Have you searched the Issues to see if your problem has already been reported? If it has, please follow that Issue instead of opening a duplicate!
  • Have you checked the Rough edges for help?

Description

NAM is seems to be "tuned" for low latency, and that hurts higher latencies. Explanation: for me NAM actually works at 128 samples, better than at 512 samples latency.
16 samples - 50% RT CPU, hitches.
32 samples - 4% RT CPU,
64 samples - 2-3% RT CPU,
128 samples - 1,0% RT CPU during playback,
256 samples - SKYROCKETS! to 120-150% RT CPU, massive hitches,
512 samples - SKYROCKETS! to 150-170% RT CPU, massive hitches.
And then more samples - more RT CPU usage and more hitches.

Tested using VST3 in Reaper v7.36 using Audient ID4 Asio driver, and happened with at least two Ryzen CPU, Ryzen 7 2700x and Ryzen 7 7700.

To reproduce

Steps to reproduce the behavior:

  1. Set your latency in ASIO for anything higher than 256 samples.
  2. Playback audio
  3. Observe CPU usage and listen for hitches.

Expected behavior

Plugin should work fine at lower samples if PC can handle it, can work fine on higher samples, instead - it works worse on higher latencies.

Screenshots

Image - 128 samples

Image - 512 samples

Computer & other info

(please provide the following information):

  • OS Windows 11, 23H2
  • RTX 4060
  • v 0.7.13, but I think I observed this behaviour on earlier versions too.
  • VST3
  • Reaper
  • Audient ID4 MK2
  • 48KHZ
  • Listed above
  • Provide a model that the bug happens with (except if the bug happens without a model loaded) - I personally have multiple NAMs with different models stacked in project, but I'm not sure whether this behaviour happens only with multiple nams or not, and if model matters. - Folder with two nam models - https://drive.google.com/drive/folders/1WoSbFnh1k6IiVhmfhypLtqzER2dZhhAd?usp=sharing
  • Provide an IR that the bug happens with (except if the bug happens without an IR loaded) - IR makes no difference.
  • Does the bug not happen under some other conditions? If you can find what one thing makes the difference between the bug appearing and not, this drastically improves the chances I can fix it. - Listed above.

Additional context

Of course I understand that such plugins are expected to used at more lower latencies, but that shouldn't mean that higher latencies need to awful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:lowLow priority issues

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions