mirror of
https://github.com/OpenMW/openmw.git
synced 2025-05-02 22:41:23 +00:00
Detach the thread used for frame timing
This commit is contained in:
parent
34e36fb852
commit
1fb9eef27b
1 changed files with 1 additions and 1 deletions
|
@ -336,7 +336,7 @@ namespace MWRender
|
||||||
//SDL_AddTimer(delay, sdl_refresh_timer_cb, is);
|
//SDL_AddTimer(delay, sdl_refresh_timer_cb, is);
|
||||||
//is->refresh_queue.push_back (delay);
|
//is->refresh_queue.push_back (delay);
|
||||||
boost::system_time t = boost::get_system_time() + boost::posix_time::milliseconds(delay);
|
boost::system_time t = boost::get_system_time() + boost::posix_time::milliseconds(delay);
|
||||||
boost::thread (boost::bind(&timer_callback, t, is));
|
boost::thread (boost::bind(&timer_callback, t, is)).detach();
|
||||||
}
|
}
|
||||||
|
|
||||||
void video_display(VideoState *is)
|
void video_display(VideoState *is)
|
||||||
|
|
Loading…
Reference in a new issue