Coder Social home page Coder Social logo

CPU use RKD Clockdivider about ohmer HOT 13 CLOSED

Petervos2018 avatar Petervos2018 commented on August 17, 2024
CPU use RKD Clockdivider

from ohmer.

Comments (13)

DomiKamu avatar DomiKamu commented on August 17, 2024 1

Hi Peter,

I'm sorry for very late reply, but - due to new job - I don't have enought free time for development! and discovering your issue only this evening.

Strangely, about RKD, you're alone to report a abnormal (excessive) CPU usage, really. What platform are you using exactly (Windows-based, OSX, Linux ?) CPU ? GPU ? etc...

Also, I precise they're 8 dividers, different and variable rates, but it uses precise clock algorithms - sample-based. Some of "competitors" - at x1 - have signifiant drifts after some minutes when running, few months ago.

I'm using Intel Core i7 4790 at 3.6 GHz (Asus Maximum VII Hero mobo, 32 GB RAM), OS is Windows 7 Professional SP1 (French localized), I've never noticed 4x-5x CPU usage on my platform (and friends and other users don't have reported this, be sure I'm suprised.

Greetings, Dominique.

from ohmer.

Petervos2018 avatar Petervos2018 commented on August 17, 2024 1

I have an Intel Core i7-2600 CPU @ 3.4GHz.
Also thinking about a new one , Windows7 also at its end... :(
(The specs for your new one look good). 👍

Greetings Peter.

from ohmer.

DomiKamu avatar DomiKamu commented on August 17, 2024 1

Ok thanks - perhaps it's the reason why you get higher CPU usage than me. New PC will use Windows 10 Pro (instead of Windows 7 Pro SP1).

Specs for new one seems good, but as long as I don't have all parts... To be honest, the PC upgrade wasn't required, since I've replaced the GTX 660 2GB by RTX 2080 8GB), but assuming 1/ it's my Christmas gift lol (every X-mas since 2012, I buy a VSTi plugin such synth - previous 2018 was VPS Avenger, 2017 was u-he Diva, 2016 was Synapse's DUNE 2, and so on) 2/ to be consistent between CPU and new GPU (I'm a bit gamer too)...

from ohmer.

DomiKamu avatar DomiKamu commented on August 17, 2024 1

Hi again, Peter, Marc have replied and given some interestings tips for optimizations (to reduce CPU loads). Mine modules are working every frame, but it's not necessary for displays & LEDs (for example). I don't plan an update of Ohmer modules yet (not prior February 2020) but it goes UNDER CONSIDERATION ! ;) but they're many stuffs on this module...

from ohmer.

DomiKamu avatar DomiKamu commented on August 17, 2024 1

Hi Peter, good news, having my new PC, having reinstalled Rack 1.1.6 + developer... Now I'll try to take times to update RKD module! ;)

from ohmer.

Petervos2018 avatar Petervos2018 commented on August 17, 2024

No problem Dominique, just glad you're ok and I hope you like your new job.

I'm also on Windows7, and I just thought it was strange that your module had a much higher CPU usage than the other dividers.

ClockDividers - 21122019 for Dominique.zip

Maybe you could/would like to test my simple vcv patch and make a screenshot for me so I can see that it's just ME who is having high CPU useage with your module.
Take your time ;) 👍

Greetings Peter.

from ohmer.

DomiKamu avatar DomiKamu commented on August 17, 2024

Hi Peter,

Fortunately I'll stay at home this weekend (despite I'll busy, I'm preparing my new PC - but current will stay alive for... computer music). ;)

First test I've made give (you're right), around 2.2% CPU (screen cap) by using very basic patch: clock generator (KlokSpid), clock divider ("RKD" module, without "BRK", only input, no patched output), and unused "Audio-8" (but required anyway to avoid running x2 faster).

Sans titre-1

It's not 3.4%, but 2.2% is a bit excessive (probably)... Be sure I don't understand why. Not easy to test your patch (from ZIP file) because I don't have many modules on my system:

Sans titre-2

But by using existing (common) modules, the result is same:

Sans titre-3

Of course, as kind of reminder, I keep this issue open.
Thanks for this report!

Greetings from France,
Dominique Camus

from ohmer.

DomiKamu avatar DomiKamu commented on August 17, 2024

I'll contact (via Messenger) Marc Boulé, author of "Clocked" (ImpromptuModular) - perhaps he'll can help me to check my source, and to discover why we get more than 2%. It's not a memory leak (I've monitored the incomplete patch above) but the truth is elsewhere.

from ohmer.

Petervos2018 avatar Petervos2018 commented on August 17, 2024

Hi Dominique,

Sorry for giving you a vcv file with ALL the dividers in it ;) But it is/was my testing file to test which dividers do work the way I want them to. Yours is one of the 3 !

Thanks for taking the time to test this and come to a somewhat same conclusion, although your 2.2% is not my 3.4%, it is still higher than the rest.

Let's see if Marc can/will come up with an answer...

Happy Holidays to you and your family,
Peter.

from ohmer.

DomiKamu avatar DomiKamu commented on August 17, 2024

Peter, what the brand/model of CPU you're using? (mine is Intel Core i7 4790 @ 3.6 GHz stock).

I don't have checked my C++ code, also don't have touch/read the source since many months.

Don't worry about your .vcv (patch) file, I get 2.2% too, by using very basic patch, as shown above. ;)

I'll contact Marc but after holidays, I'll away (very often) from my computer. Also my new computer is planned (I hope) for February 2020 (Core i9 based, SSD and so on - assembled by myself). Already having some parts (CPU i9 9900KF, Corsair AIO watercooling, 2 TB HDD, Asus RTX 2080), but waiting (money €) for new motherboard (Asus Maximus XI Hero), DDR4 (2 x 16 GB Corsair), 480 GB SSD M.2 NVMe (Corsair), 1 TB 2.5" SATA SSD (Samsung 860 Pro)... Plus free time to reinstall all properly... :)

Yep, many thanks Peter, and happy holidays to you and your close relatives, too!

Dominique.

from ohmer.

Petervos2018 avatar Petervos2018 commented on August 17, 2024

Cool 👍 take your time :)

Thanks for everything so far,
Peter.

from ohmer.

DomiKamu avatar DomiKamu commented on August 17, 2024

The issue now is fixed by addressing all (8) displays (when CLK is wired) every 32 frames (samples). Now CPU load can't exceed 0.1%.

The Windows binary is available from "Releases" - please use v1.1.6. Thanks!
(coming in couple of days in VCV Plugin Library).
Issue closed.

from ohmer.

Petervos2018 avatar Petervos2018 commented on August 17, 2024

Thank you this works great 👍

from ohmer.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.