mirror of
https://github.com/thinkonmay/sunshine-sdk.git
synced 2026-01-02 05:53:31 +00:00
increase packet size
This commit is contained in:
parent
d876be0251
commit
bb0a8bb4b7
@ -1,5 +1,5 @@
|
||||
#define QUEUE_SIZE 64
|
||||
#define PACKET_SIZE 512 * 1024
|
||||
#define PACKET_SIZE 5 * 1024 * 1024
|
||||
|
||||
typedef struct {
|
||||
int active;
|
||||
|
||||
@ -309,7 +309,9 @@ main(int argc, char *argv[]) {
|
||||
auto touch_port = mail->event<input::touch_port_t>(mail::touch_port);
|
||||
|
||||
while (!process_shutdown_event->peek() && !local_shutdown->peek()) {
|
||||
if(touch_port->peek()) {
|
||||
if(!touch_port->peek()) {
|
||||
std::this_thread::sleep_for(100ms);
|
||||
} else {
|
||||
auto touch = touch_port->pop();
|
||||
if (touch.has_value()) {
|
||||
auto value = touch.value();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user