mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
Remove unused cycle timer from plugins
These days performance is measured on PluginInsert level using more elaborate PBD::TimingStats
This commit is contained in:
parent
0fd67d36d9
commit
b3bf623c4b
3 changed files with 0 additions and 14 deletions
|
|
@ -33,7 +33,6 @@
|
|||
#include "ardour/buffer_set.h"
|
||||
#include "ardour/chan_count.h"
|
||||
#include "ardour/chan_mapping.h"
|
||||
#include "ardour/cycles.h"
|
||||
#include "ardour/latent.h"
|
||||
#include "ardour/libardour_visibility.h"
|
||||
#include "ardour/midi_ring_buffer.h"
|
||||
|
|
@ -326,9 +325,6 @@ public:
|
|||
virtual void set_owner (SessionObject* o) { _owner = o; }
|
||||
SessionObject* owner () const { return _owner; }
|
||||
|
||||
void set_cycles (uint32_t c) { _cycles = c; }
|
||||
cycles_t cycles () const { return _cycles; }
|
||||
|
||||
void use_for_impulse_analysis ()
|
||||
{
|
||||
_for_impulse_analysis = true;
|
||||
|
|
|
|||
|
|
@ -573,9 +573,6 @@ LadspaPlugin::connect_and_run (BufferSet& bufs,
|
|||
{
|
||||
Plugin::connect_and_run (bufs, start, end, speed, in_map, out_map, nframes, offset);
|
||||
|
||||
cycles_t now;
|
||||
cycles_t then = get_cycles ();
|
||||
|
||||
BufferSet& silent_bufs = _session.get_silent_buffers(ChanCount(DataType::AUDIO, 1));
|
||||
BufferSet& scratch_bufs = _session.get_scratch_buffers(ChanCount(DataType::AUDIO, 1));
|
||||
|
||||
|
|
@ -599,8 +596,6 @@ LadspaPlugin::connect_and_run (BufferSet& bufs,
|
|||
}
|
||||
|
||||
run_in_place (nframes);
|
||||
now = get_cycles ();
|
||||
set_cycles ((uint32_t) (now - then));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2851,8 +2851,6 @@ LV2Plugin::connect_and_run(BufferSet& bufs,
|
|||
DEBUG_TRACE(DEBUG::LV2, string_compose("%1 run %2 offset %3\n", name(), nframes, offset));
|
||||
Plugin::connect_and_run(bufs, start, end, speed, in_map, out_map, nframes, offset);
|
||||
|
||||
cycles_t then = get_cycles();
|
||||
|
||||
/* remain at zero during pre-roll at zero */
|
||||
speed = end > 0 ? speed : 0;
|
||||
samplepos_t start0 = std::max (samplepos_t (0), start);
|
||||
|
|
@ -3355,9 +3353,6 @@ LV2Plugin::connect_and_run(BufferSet& bufs,
|
|||
}
|
||||
}
|
||||
|
||||
cycles_t now = get_cycles();
|
||||
set_cycles((uint32_t)(now - then));
|
||||
|
||||
// Update expected transport information for next cycle so we can detect changes
|
||||
_next_cycle_speed = speed;
|
||||
_next_cycle_start = end + (start - start0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue