laxnpander / OpenREALM

OpenREALM is a pipeline for real-time aerial mapping utilizing visual SLAM and 3D reconstruction frameworks.
GNU Lesser General Public License v2.1
466 stars 119 forks source link

Improve System Shutdown Speed #48

Closed zthorson closed 3 years ago

zthorson commented 3 years ago

Description

Some threads were slow to shut down, taking 5-10 seconds after system shutdown to fully exit. This appeared to be primarily caused by the FPS timers not being interruptable, but there were other minor shutdown tasks that would take a while.

Reason

A quicker shutdown allows us to release resources quicker on systems, allowing a full restarts of the code in a shorter time frame.

Method / Design

Changes included:

Testing

Compiled and run on: Ubuntu 20.04 - Desktop

Other Notes

laxnpander commented 3 years ago

Looks good, seems to be running. Merged!