Skip to content

Commit

Permalink
fix #591
Browse files Browse the repository at this point in the history
  • Loading branch information
mehah committed Sep 16, 2023
1 parent 492b3c4 commit 9b903f1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/framework/core/graphicalapplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ void GraphicalApplication::run()
std::thread t1([&]() {
while (!m_stopping) {
poll();
g_particles.poll();

if (!g_window.isVisible()) {
stdext::millisleep(10);
Expand Down Expand Up @@ -231,6 +230,12 @@ void GraphicalApplication::poll()
#ifdef FRAMEWORK_SOUND
g_sounds.poll();
#endif

g_particles.poll();

if (!g_window.isVisible()) {
g_textDispatcher.poll();
}
}

void GraphicalApplication::mainPoll()
Expand Down

0 comments on commit 9b903f1

Please sign in to comment.