diff --git a/lib/defines.h b/lib/defines.h index 92c0c5d0..71f15bd7 100644 --- a/lib/defines.h +++ b/lib/defines.h @@ -216,7 +216,7 @@ static inline void show_stackframe(){} #define SHM_TRACK_DATA "MstData%s@%zu_%" PRIu32 //%s stream name, %zu track ID, %PRIu32 page # // End new meta -#define INPUT_USER_INTERVAL 1000 +#define INPUT_USER_INTERVAL 250 #define SHM_STREAM_STATE "MstSTATE%s" //%s stream name #define SHM_STREAM_CONF "MstSCnf%s" //%s stream name diff --git a/src/input/input.cpp b/src/input/input.cpp index 03f82798..16bae077 100644 --- a/src/input/input.cpp +++ b/src/input/input.cpp @@ -76,7 +76,7 @@ namespace Mist{ VERYHIGH_MSG("Key priority for %zu:%zu = %" PRIu64, i->first.track, i->first.key, i->second); } uint64_t timer = Util::bootMS(); - for (std::multimap::reverse_iterator i = reverse.rbegin(); i != reverse.rend() && Util::bootMS() < timer + 500; ++i){ + for (std::multimap::reverse_iterator i = reverse.rbegin(); i != reverse.rend() && Util::bootMS() < timer + INPUT_USER_INTERVAL; ++i){ bufferFrame(i->second.track, i->second.key); } }