From f29c8e6f35b000f6842967a14e3c0ece00caa80d Mon Sep 17 00:00:00 2001 From: Yuri Gorshenin Date: Thu, 26 Mar 2015 19:57:23 +0300 Subject: [PATCH] Review fixes. --- base/thread.hpp | 8 +++++--- drape_frontend/frontend_renderer.cpp | 7 +++---- 2 files changed, 8 insertions(+), 7 deletions(-) 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();