Browse Source

Allow to specific standalone app idle time

pull/61/head
falkTX 5 years ago
parent
commit
8e747ec0d5
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      dgl/Application.hpp
  2. +2
    -2
      dgl/src/Application.cpp

+ 1
- 1
dgl/Application.hpp View File

@@ -62,7 +62,7 @@ public:
idle() is called at regular intervals.
@note This function is meant for standalones only, *never* call this from plugins.
*/
void exec();
void exec(int idleTime = 10);

/**
Quit the application.


+ 2
- 2
dgl/src/Application.cpp View File

@@ -44,12 +44,12 @@ void Application::idle()
}
}

void Application::exec()
void Application::exec(int idleTime)
{
for (; pData->doLoop;)
{
idle();
d_msleep(10);
d_msleep(idleTime);
}
}



Loading…
Cancel
Save