synchronize animation and render thread
synchronize animation and render thread
use boost to get current time for logging.
only call glGetError when debug profile is used.
only call glGetError when debug profile is used.