Move input packet debug prints off the control stream thread

The control stream thread is extremely performance-sensitive.
This commit is contained in:
Cameron Gutman
2023-06-26 21:10:36 -05:00
parent 62606a62f9
commit 737be029ec
2 changed files with 3 additions and 2 deletions

View File

@@ -1103,6 +1103,9 @@ namespace input {
}
}
// Print the final input packet
input::print((void *) payload);
// Send the batched input to the OS
switch (util::endian::little(payload->magic)) {
case MOUSE_MOVE_REL_MAGIC_GEN5:

View File

@@ -759,7 +759,6 @@ namespace stream {
std::copy(payload.end() - 16, payload.end(), std::begin(iv));
}
input::print(plaintext.data());
input::passthrough(session->input, std::move(plaintext));
});
@@ -818,7 +817,6 @@ namespace stream {
constexpr auto skip = sizeof(std::uint16_t) * 2;
plaintext.erase(std::begin(plaintext), std::begin(plaintext) + skip);
input::print(plaintext.data());
input::passthrough(session->input, std::move(plaintext));
});