mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-06 19:40:10 +02:00
Increase default serialization buffer size
This commit is contained in:
@@ -10,6 +10,12 @@ Versioning](https://semver.org/spec/v2.0.0.html).
|
|||||||
|
|
||||||
TODO: Mention CLAP. Because, you know, kinda important new feature.
|
TODO: Mention CLAP. Because, you know, kinda important new feature.
|
||||||
|
|
||||||
|
# Changed
|
||||||
|
|
||||||
|
- Slightly optimized the use of serialization buffers to reduce memory usage for
|
||||||
|
VST3 audio threads and to potentially speed up parameter information queries
|
||||||
|
for parameters with lots of text.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- Fixed a minor memory leak in the Wine->X11 drag-and-drop implementation when
|
- Fixed a minor memory leak in the Wine->X11 drag-and-drop implementation when
|
||||||
|
|||||||
@@ -343,7 +343,7 @@ class ClapSockets final : public Sockets {
|
|||||||
const T& object,
|
const T& object,
|
||||||
std::optional<std::pair<ClapLogger&, bool>> logging) {
|
std::optional<std::pair<ClapLogger&, bool>> logging) {
|
||||||
typename T::Response response_object;
|
typename T::Response response_object;
|
||||||
thread_local SerializationBuffer<256> audio_thread_buffer{};
|
thread_local SerializationBuffer<2048> audio_thread_buffer{};
|
||||||
|
|
||||||
return audio_thread_sockets_.at(object.owner_instance_id)
|
return audio_thread_sockets_.at(object.owner_instance_id)
|
||||||
.callback_.receive_into(object, response_object, logging,
|
.callback_.receive_into(object, response_object, logging,
|
||||||
|
|||||||
@@ -1110,6 +1110,8 @@ class TypedMessageHandler : public AdHocSocketHandler<Thread> {
|
|||||||
// every time, but on the audio processor side we store the
|
// every time, but on the audio processor side we store the
|
||||||
// actual variant within an object and we then use some hackery
|
// actual variant within an object and we then use some hackery
|
||||||
// to always keep the large process data object in memory.
|
// to always keep the large process data object in memory.
|
||||||
|
// NOTE: Unlike the VST2 version, this persistent buffer is only
|
||||||
|
// used for audio thread messages
|
||||||
thread_local SerializationBuffer<256> persistent_buffer{};
|
thread_local SerializationBuffer<256> persistent_buffer{};
|
||||||
thread_local Request persistent_object;
|
thread_local Request persistent_object;
|
||||||
|
|
||||||
|
|||||||
@@ -263,7 +263,7 @@ class Vst3Sockets final : public Sockets {
|
|||||||
typename T::Response& response_object,
|
typename T::Response& response_object,
|
||||||
size_t instance_id,
|
size_t instance_id,
|
||||||
std::optional<std::pair<Vst3Logger&, bool>> logging) {
|
std::optional<std::pair<Vst3Logger&, bool>> logging) {
|
||||||
thread_local SerializationBuffer<256> audio_processor_buffer{};
|
thread_local SerializationBuffer<2048> audio_processor_buffer{};
|
||||||
|
|
||||||
return audio_processor_sockets_.at(instance_id)
|
return audio_processor_sockets_.at(instance_id)
|
||||||
.receive_into(object, response_object, logging,
|
.receive_into(object, response_object, logging,
|
||||||
|
|||||||
Reference in New Issue
Block a user