mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-08-10 00:52:16 +00:00
Move input packet debug prints off the control stream thread
The control stream thread is extremely performance-sensitive.
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user