Browse Source

Linux: fix host fps setting (=> 30fps)

pull/1639/head
bsp2 6 years ago
parent
commit
515a9ae6a4
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      src/vst2_main.cpp

+ 6
- 0
src/vst2_main.cpp View File

@@ -642,7 +642,13 @@ public:


void setRefreshRate(float _hz) { void setRefreshRate(float _hz) {
if(_hz < 15.0f) if(_hz < 15.0f)
{
#ifdef YAC_LINUX
redraw_ival_ms = 1000/30u; // start timer
#else
redraw_ival_ms = 0u; redraw_ival_ms = 0u;
#endif
}
else else
redraw_ival_ms = sUI(1000.0f / _hz); redraw_ival_ms = sUI(1000.0f / _hz);




Loading…
Cancel
Save