Fix high CPU usage in musikcube-cmd build.

This commit is contained in:
casey langen 2021-03-06 14:36:26 -08:00
parent 710eecbee9
commit 95420b8359

View File

@ -40,11 +40,15 @@
#include <musikcore/runtime/IMessageQueue.h> #include <musikcore/runtime/IMessageQueue.h>
#ifdef WIN32 #ifdef WIN32
#define IDLE_TIMEOUT_MS 0 #if defined(PDCURSES_WINCON) || defined(_CONSOLE)
#define REDRAW_DEBOUNCE_MS 100 #define IDLE_TIMEOUT_MS 1
#else
#define IDLE_TIMEOUT_MS 0
#endif
#define REDRAW_DEBOUNCE_MS 100
#else #else
#define IDLE_TIMEOUT_MS 75 #define IDLE_TIMEOUT_MS 75
#define REDRAW_DEBOUNCE_MS 100 #define REDRAW_DEBOUNCE_MS 100
#endif #endif
namespace cursespp { namespace cursespp {