If you enjoy our forum, why not join us? :) Login removes all the ads too! Click here to register in a few simple steps

Login to remove this ad | Register Here
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why higher CPU load on Betaflight 3.2 than older version?
#1
I just put on my BetaflightF3 the latest beta 3.2. But I have 40% CPU and I do not understand why. With 3.1.7 it was 23%. I have 8k/8k, no blackbox active, acc disabled, active airmode antigravity and dynamic filters. The rest of the filters are stock. Has anyone encountered this problem? Thanks in advance
#2
I would guess that the dynamic filtering algoritmh is quite recourse hungry.
if you try deactivating Dynamic filter, I bet the CPU would return to 23%.
I would probably recommend to drop your looptime to 4K to ensure more reliable performance, you don't want CPU load to be higher than 30% at idle.
Reply
#3
40% shouldn't be a big problem for BF 3.2, if it stays under 50% you are good to go, that is what i have read. Also BF is smart enough to shutdown processes that are less important to fly safely if it's running out of proccesor power. Something like blackbox, current sensor or Vbat.
Reply
Login to remove this ad | Register Here
#4
The higher CPU is indeed because you are using dynamic filtering.

The dynamic filter code is doing some really heavy maths to work out where it should be filtering the noise. This function wasn't available in Betaflight 3.1.7, so what you're seeing is how much extra that function takes.

(12-Oct-2017, 11:00 AM)Dutch Drone Builder Wrote: Also BF is smart enough to shutdown processes that are less important to fly safely if it's running out of proccesor power.

Do you have a link to information about that?
Reply
#5
@Unseen, here is the link:
https://github.com/betaflight/betaflight...by-ede2016
[-] The following 1 user Likes Dutch Drone Builder's post:
  • Carl.Vegas
Reply
#6
So, I was worry about my cpu load @47% using BF3.2 RC5 when disarmed.
4k/4k - Accelerometer/DSHOT300/AirMode/AntiGravity/DynamicFilter
Is that ok?
Reply
Login to remove this ad | Register Here
#7
You can update to the final version, maybe this will drop a bit and if you are flying acro then you could also disable the ACC to save some cpu load, but you are good to go.
[-] The following 1 user Likes Dutch Drone Builder's post:
  • egvneto
Reply
#8
@Tom, it's recommended to run 4k max with dynamic filter on f3.
Reply
#9
(13-Oct-2017, 10:15 AM)Dutch Drone Builder Wrote: @Unseen, here is the link:
https://github.com/betaflight/betaflight...by-ede2016

Thanks for the link.

Maybe it's a language thing, but "Usually on high CPU usage more less prioritized things will stop working" is NOT the same as "BF is smart enough to shutdown processes that are less important to fly safely if it's running out of proccesor power"

The implication of what you said is that it's OK to run with CPU load too high as Betaflight will intentionally stop running less important tasks.

That's not what I get from BorisB's explanation. What he's saying is that these tasks might stop working because there's not enough time left to run them.

It's not OK to run with CPU load too high.
Reply
Login to remove this ad | Register Here
#10
I'm sorry about the confussing message, my english language isn't that good, thanks for correcting the information.

Of course you must try to keep de CPU load as low as possible, that was also what i was meaning.
But I think you are still save to go if the CPU load is under 50%
[-] The following 1 user Likes Dutch Drone Builder's post:
  • unseen
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  I need help connecting a transmitter to Betaflight eanfire 1 181 29-Jul-2017, 11:33 PM
Last Post: Drone0fPrey
  Raceflight Revolt or Betaflight f3? JPFlorida 1 261 07-Jul-2017, 11:06 PM
Last Post: paulsmith
  Betaflight FC Gyro sampling and looptime beastmode92 2 287 01-Jun-2017, 12:33 PM
Last Post: Trollhammered
  higher or lower kv? Tom BD Bad 5 416 19-May-2017, 03:32 PM
Last Post: Dngr.fpv
  restore Betaflight modes CaCondor 4 488 20-Mar-2017, 07:53 PM
Last Post: CaCondor