13
0
livetrax/libs
Tim Mayberry 6e91ee071c Reimplementation of large parts of the WaveView class
The drawing itself should be unchanged but much of the rest of the
implementation has changed. The WaveViewThreads and WaveViewDrawingThread
classes were added and allow multiple drawing threads.

The Item::prepare_for_render interface is implemented by WaveView to enable
queuing draw requests for the drawing threads to process as soon as the state
change occurs during Editor::visual_changer, which often means the images will
be finished by the time they are needed in WaveView::render. This can
significantly reduce total render time and also flickering caused by images not
being ready for display.

If the drawing thread/s cannot finish the request by the time it is required in
WaveView::render then cancel it and draw the WaveViewImage in the GUI thread if
it is likely it can be completed in the current render pass/frame.  This change
also helps reduce the flickering caused by images not being ready with threaded
rendering, but with several drawing threads, drawing in the GUI thread may not
often occur (unless explicitly requested).

Allow unfinished images to be returned from the cache in
WaveView::prepare_for_render so that new draw requests aren't queued for
duplicate images. This reduces the amount of drawing for instance in
compositions where there are many instances of the same sample/waveform
displayed on the canvas as only a single image should be drawn.

Use a random width within a certain range for
WaveView::optimal_image_width_samples so that image drawing is less likely to
occur at the same time (which will cause a spike in render/draw time and
increase the chance of flickering waveforms).

Move implementations of the private WaveView classes into wave_view_private.h
and wave_view_private.cc source files.

Incorporate a fix for limiting the waveview image size to the cairo image size
limit.

Should hopefully Resolve: #6478
2017-06-26 08:40:47 +10:00
..
appleutility
ardour Allow saving state w/o backend 2017-06-25 22:03:42 +02:00
ardouralsautil
audiographer
backends Report Dummy as not available if not running 2017-06-25 20:53:47 +02:00
canvas Reimplementation of large parts of the WaveView class 2017-06-26 08:40:47 +10:00
clearlooks-newer
clearlooks-older
evoral Remove duplicates from ControlList 2017-06-21 18:12:31 +02:00
fluidsynth
fst
gtkmm2ext Remove unused pbd/locale_guard.h header from Gtkmm2ext::Barcontroller class 2017-06-22 10:48:38 +10:00
hidapi Fix libhid compile with /recent/ libc (GNU_SOURCE) 2017-05-20 12:39:49 +02:00
libltc
lua
midi++2
panners
pbd Accommodate newly introduced source(s) in our MSVC project (libpbd) 2017-06-22 17:59:16 +01:00
plugins a-EQ: Revert one of the previous changes 2017-06-09 23:09:36 +10:00
ptformat
qm-dsp
surfaces OSC: simplify GUI and make less error-prone 2017-06-24 13:13:53 -07:00
timecode
vamp-plugins
vfork