Skip to content

Commit

Permalink
修复MSVC下反应过慢的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
HEYAHONG committed Dec 19, 2024
1 parent 19f097e commit 5bcc18e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/monochromescreen/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,11 @@ int main()
while(hgui_scene1_app_update(&g_hgui_scene1_app,NULL))
{
i++;
#ifdef WIN32
std::this_thread::sleep_for(std::chrono::milliseconds(1));
#else
std::this_thread::sleep_for(std::chrono::milliseconds(50));
#endif // WIN32
}
return 0;
}

0 comments on commit 5bcc18e

Please sign in to comment.