Increase default serialization buffer size

This commit is contained in:
Robbert van der Helm
2022-09-26 17:05:28 +02:00
parent 8bc61837c9
commit ca218cb596
4 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -343,7 +343,7 @@ class ClapSockets final : public Sockets {
const T& object,
std::optional<std::pair<ClapLogger&, bool>> logging) {
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)
.callback_.receive_into(object, response_object, logging,
+2
View File
@@ -1110,6 +1110,8 @@ class TypedMessageHandler : public AdHocSocketHandler<Thread> {
// every time, but on the audio processor side we store the
// actual variant within an object and we then use some hackery
// 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 Request persistent_object;
+1 -1
View File
@@ -263,7 +263,7 @@ class Vst3Sockets final : public Sockets {
typename T::Response& response_object,
size_t instance_id,
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)
.receive_into(object, response_object, logging,