That worked!

By the way, the performance is a ton better once floats were enabled.

Profiling results:

hardware: Raspberry Pi Zero -- Linux raspberrypi 4.14.34+ #1110 Mon Apr 16
14:51:42 BST 2018 armv6l GNU/Linux
fluidsynth version: 2.0.0.beta1
build:   cmake -DCMAKE_BUILD_TYPE=Release
-DCMAKE_C_FLAGS_RELEASE="-ffast-math -O3" -Denable-profiling=1
-Denable-floats=true ..
params: prof_set_notes 50, prof_set_print 1, prof_start 5 1000



 fluidsynth Number of measures(n_prof):5, duration of one mesure(dur):1000ms
  fluidsynth
  fluidsynth Profiling time(mm:ss): Total=0:5  Remainder=0:5, press <ENTER>
to cancel
  fluidsynth  +417ms
  fluidsynth
------------------------------------------------------------------------------
  fluidsynth  Duration(microsecond) and cpu loads(%) (sr: 44100 Hz, sp:
22.68 microsecond)
  fluidsynth
------------------------------------------------------------------------------
  fluidsynth  Code under profiling       |Voices|       Duration
(microsecond)   |  Load(%)
  fluidsynth                             |   nbr|       min|       avg|
   max|
  fluidsynth
---------------------------|------|--------------------------------|----------
  fluidsynth  synth_write_* ------------>|    50|   1168.00|   1233.01|
 1415.00|  84.962
  fluidsynth  synth_one_block ---------->|    50|   1150.00|   1212.99|
 1374.00|  83.582
  fluidsynth  synth_one_block:clear ---->|    50|      3.00|      5.15|
 85.00|   0.355
  fluidsynth  synth_one_block:one voice->|     1|     18.00|     20.73|
118.00|   1.428
  fluidsynth  synth_one_block:all voices>|    50|    990.00|   1041.04|
 1184.00|  71.734
  fluidsynth  synth_one_block:reverb --->|     0|    107.00|    113.22|
190.00|   7.802
  fluidsynth  synth_one_block:chorus --->|     0|     35.00|     46.79|
142.00|   3.224
  fluidsynth  voice:note --------------->| no profiling available
  fluidsynth  voice:release ------------>| no profiling available
  fluidsynth
------------------------------------------------------------------------------
  fluidsynth  Cpu loads(%) (sr: 44100 Hz, sp: 22.68 microsecond) and
maximum voices
  fluidsynth
------------------------------------------------------------------------------
  fluidsynth  nVoices| total(%)|voices(%)| reverb(%)|chorus(%)|
voice(%)|estimated maxVoices
  fluidsynth
-------|---------|---------|----------|---------|---------|-------------------
  fluidsynth       50|   84.962|   73.936|     7.802|    3.224|    1.435|
             62
  fluidsynth
  fluidsynth Profiling time(mm:ss): Total=0:5  Remainder=0:4, press <ENTER>
to cancel
  fluidsynth  +624ms
  fluidsynth
------------------------------------------------------------------------------
  fluidsynth  Duration(microsecond) and cpu loads(%) (sr: 44100 Hz, sp:
22.68 microsecond)
  fluidsynth
------------------------------------------------------------------------------
  fluidsynth  Code under profiling       |Voices|       Duration
(microsecond)   |  Load(%)
  fluidsynth                             |   nbr|       min|       avg|
   max|
  fluidsynth
---------------------------|------|--------------------------------|----------
  fluidsynth  synth_write_* ------------>|    50|   1168.00|   1232.86|
 1415.00|  84.952
  fluidsynth  synth_one_block ---------->|    50|   1150.00|   1213.04|
 1374.00|  83.586
  fluidsynth  synth_one_block:clear ---->|    50|      3.00|      5.07|
 85.00|   0.349
  fluidsynth  synth_one_block:one voice->|     1|     17.00|     20.73|
122.00|   1.428
  fluidsynth  synth_one_block:all voices>|    50|    989.00|   1041.04|
 1184.00|  71.734
  fluidsynth  synth_one_block:reverb --->|     0|    107.00|    113.37|
200.00|   7.812
  fluidsynth  synth_one_block:chorus --->|     0|     35.00|     46.72|
142.00|   3.219
  fluidsynth  voice:note --------------->| no profiling available
  fluidsynth  voice:release ------------>| no profiling available
  fluidsynth
------------------------------------------------------------------------------
  fluidsynth  Cpu loads(%) (sr: 44100 Hz, sp: 22.68 microsecond) and
maximum voices
  fluidsynth
------------------------------------------------------------------------------
  fluidsynth  nVoices| total(%)|voices(%)| reverb(%)|chorus(%)|
voice(%)|estimated maxVoices
  fluidsynth
-------|---------|---------|----------|---------|---------|-------------------
  fluidsynth       50|   84.952|   73.921|     7.812|    3.219|    1.435|
             62
  fluidsynth
  fluidsynth Profiling time(mm:ss): Total=0:5  Remainder=0:3, press <ENTER>
to cancel
  fluidsynth
------------------------------------------------------------------------------
  fluidsynth  Duration(microsecond) and cpu loads(%) (sr: 44100 Hz, sp:
22.68 microsecond)
  fluidsynth
------------------------------------------------------------------------------
  fluidsynth  Code under profiling       |Voices|       Duration
(microsecond)   |  Load(%)
  fluidsynth                             |   nbr|       min|       avg|
   max|
  fluidsynth
---------------------------|------|--------------------------------|----------
  fluidsynth  synth_write_* ------------>|    50|   1168.00|   1232.97|
 1415.00|  84.960
  fluidsynth  synth_one_block ---------->|    50|   1150.00|   1213.16|
 1374.00|  83.594
  fluidsynth  synth_one_block:clear ---->|    50|      3.00|      5.05|
 85.00|   0.348
  fluidsynth  synth_one_block:one voice->|     1|     17.00|     20.73|
122.00|   1.429
  fluidsynth  synth_one_block:all voices>|    50|    989.00|   1041.12|
 1184.00|  71.740
  fluidsynth  synth_one_block:reverb --->|     0|    107.00|    113.56|
200.00|   7.825
  fluidsynth  synth_one_block:chorus --->|     0|     35.00|     46.61|
142.00|   3.212
  fluidsynth  voice:note --------------->| no profiling available
  fluidsynth  voice:release ------------>| no profiling available
  fluidsynth
------------------------------------------------------------------------------
  fluidsynth  Cpu loads(%) (sr: 44100 Hz, sp: 22.68 microsecond) and
maximum voices
  fluidsynth
------------------------------------------------------------------------------
  fluidsynth  nVoices| total(%)|voices(%)| reverb(%)|chorus(%)|
voice(%)|estimated maxVoices
  fluidsynth
-------|---------|---------|----------|---------|---------|-------------------
  fluidsynth       50|   84.960|   73.923|     7.825|    3.212|    1.435|
             62
  fluidsynth
  fluidsynth Profiling time(mm:ss): Total=0:5  Remainder=0:2, press <ENTER>
to cancel

Thanks!

On Sat, Jun 2, 2018 at 2:36 AM, Marcus Weseloh <mar...@weseloh.cc> wrote:

> Hi Geoff,
>
> 2018-06-01 23:52 GMT+02:00 Geoff Plitt <ge...@gweb.org>:
>
>> Hey Marcus,
>>
>> I built with "-Denable-profiling=1", run with synth.verbose=true, sent
>> your profiling commands, didn't see any profiling output. Am I missing
>> something?
>>
>
> That is strange... did you see any errors in the output? Oh, and you'll
> need Fluidsynth compiled from master or the 2.0 beta version.
>
> I usually write the profiling commands to a text file:
>
> prof.txt
> --------
> prof_set_notes 40
> prof_set_print 1
> prof_start 5 1000
> ---------
>
> Then start FluidSynth like this:
>
> $ fluidsynth -a alsa /path/to/Soundfont.sf2 -f /path/to/prof.txt
>
> Cheers,
>
>     Marcus
>
>
> _______________________________________________
> fluid-dev mailing list
> fluid-dev@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/fluid-dev
>
>
_______________________________________________
fluid-dev mailing list
fluid-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fluid-dev

Reply via email to