21 if (
auto && thrd = thread()) {
25 asyncLauncher([
this](){
40 return m_run && (thread() && thread()->isRunning());
43void QH::AsyncRenderLoop::renderLoopPrivate() {
44 auto&& currentTime = std::chrono::high_resolution_clock::now();
46 _lastIterationTime = currentTime;
47 int iterationTime = 0;
50 renderIteration(iterationTime);
52 currentTime = std::chrono::high_resolution_clock::now();
53 iterationTime = std::chrono::duration_cast<std::chrono::microseconds>(currentTime - _lastIterationTime).count();
54 _lastIterationTime = currentTime;
void stop()
stop This method stops the render loop.
virtual void run()
run This method starts the render loop.
bool isRun() const
isRun This method returns the state of the render loop.
AsyncRenderLoop(QThread *thread, QObject *ptr=nullptr)
The Async class This is bundle of async templates and async wrappers.
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...