diff --git a/base/thread.hpp b/base/thread.hpp index 65dba1161f..6452360a62 100644 --- a/base/thread.hpp +++ b/base/thread.hpp @@ -43,9 +43,11 @@ public: ~Thread(); /// Run thread immediately. - /// @param routine Routine that will be executed on m_thread and destroyed by - /// the current Thread instance or by the m_thread, if - /// it will be detached during the execution of routine. + /// + /// @param routine Routine that will be executed on m_thread and + /// destroyed by the current Thread instance or by + /// the m_thread, if it is detached during the + /// execution of routine. bool Create(unique_ptr && routine); /// Calling the IRoutine::Cancel method, and Join'ing with the task diff --git a/drape_frontend/frontend_renderer.cpp b/drape_frontend/frontend_renderer.cpp index fbbc1ba2d2..5affd88913 100644 --- a/drape_frontend/frontend_renderer.cpp +++ b/drape_frontend/frontend_renderer.cpp @@ -321,8 +321,7 @@ void FrontendRenderer::Routine::Do() context->makeCurrent(); my::Timer timer; - // double processingTime = InitAvarageTimePerMessage; // By init we think that one message - // processed by 1ms + //double processingTime = InitAvarageTimePerMessage; // By init we think that one message processed by 1ms timer.Reset(); while (!IsCancelled()) @@ -339,10 +338,10 @@ void FrontendRenderer::Routine::Do() { m_renderer.ProcessSingleMessage(availableTime * 1000.0); availableTime = VSyncInterval - (timer.ElapsedSeconds() /*+ avarageMessageTime*/); - // messageCount++; + //messageCount++; } - // processingTime = (timer.ElapsedSeconds() - processingTime) / messageCount; + //processingTime = (timer.ElapsedSeconds() - processingTime) / messageCount; context->present(); timer.Reset();