Tweaks to page load interval in input
This commit is contained in:
parent
b515eac15f
commit
ff32a55ddd
2 changed files with 2 additions and 2 deletions
|
@ -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 #
|
#define SHM_TRACK_DATA "MstData%s@%zu_%" PRIu32 //%s stream name, %zu track ID, %PRIu32 page #
|
||||||
// End new meta
|
// 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_STATE "MstSTATE%s" //%s stream name
|
||||||
#define SHM_STREAM_CONF "MstSCnf%s" //%s stream name
|
#define SHM_STREAM_CONF "MstSCnf%s" //%s stream name
|
||||||
|
|
|
@ -76,7 +76,7 @@ namespace Mist{
|
||||||
VERYHIGH_MSG("Key priority for %zu:%zu = %" PRIu64, i->first.track, i->first.key, i->second);
|
VERYHIGH_MSG("Key priority for %zu:%zu = %" PRIu64, i->first.track, i->first.key, i->second);
|
||||||
}
|
}
|
||||||
uint64_t timer = Util::bootMS();
|
uint64_t timer = Util::bootMS();
|
||||||
for (std::multimap<uint64_t, trackKey>::reverse_iterator i = reverse.rbegin(); i != reverse.rend() && Util::bootMS() < timer + 500; ++i){
|
for (std::multimap<uint64_t, trackKey>::reverse_iterator i = reverse.rbegin(); i != reverse.rend() && Util::bootMS() < timer + INPUT_USER_INTERVAL; ++i){
|
||||||
bufferFrame(i->second.track, i->second.key);
|
bufferFrame(i->second.track, i->second.key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue