diff options
author | weigao <weigao@multicorewareinc.com> | 2014-08-26 22:52:51 +0800 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-08-27 11:45:41 +0200 |
commit | ce538c824ab9983194cdb8b5d08ccd76e4838139 (patch) | |
tree | 4cabe12f402106ea99a1927ea28e78cf4dc779f9 /chart2/source/view | |
parent | ca2c7b32b6b929490dfd57a1f98580aec44aea88 (diff) |
reduce render fps and data update fps to half
Change-Id: Ibb8b57577696e582c05ac0ea372385373e3444de
Diffstat (limited to 'chart2/source/view')
-rw-r--r-- | chart2/source/view/charttypes/GL3DBarChart.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chart2/source/view/charttypes/GL3DBarChart.cxx b/chart2/source/view/charttypes/GL3DBarChart.cxx index d08706475a08..af55662d87a8 100644 --- a/chart2/source/view/charttypes/GL3DBarChart.cxx +++ b/chart2/source/view/charttypes/GL3DBarChart.cxx @@ -999,7 +999,7 @@ void GL3DBarChart::addScreenTextShape(OUString &nStr, glm::vec2 rLeftTop, float { maScreenTextShapes.push_back(new opengl3D::ScreenText(mpRenderer.get(), *mpTextCache, nStr, nEvent)); const opengl3D::TextCacheItem& rTextCache = mpTextCache->getText(nStr); - float nRectWidth = (float)rTextCache.maSize.Width() / (float)rTextCache.maSize.Height() * 0.05; + float nRectWidth = (float)rTextCache.maSize.Width() / (float)rTextCache.maSize.Height() * nTextHeight / 2.0f; opengl3D::ScreenText* pScreenText = static_cast<opengl3D::ScreenText*>(&maScreenTextShapes.back()); pScreenText->setPosition(rLeftTop, glm::vec2(rLeftTop.x + nRectWidth, rLeftTop.y - nTextHeight), rPos); } @@ -1017,7 +1017,7 @@ void GL3DBarChart::updateRenderFPS() osl_getSystemTime(&maFPSRenderStartTime); } osl_getSystemTime(&maFPSRenderEndTime); - addScreenTextShape(maFPS, glm::vec2(-0.99f, 0.99f), 0.1f); + addScreenTextShape(maFPS, glm::vec2(-0.99f, 0.99f), 0.06f); } int GL3DBarChart::calcTimeInterval(TimeValue &startTime, TimeValue &endTime) @@ -1061,7 +1061,7 @@ void GL3DBarChart::updateDataUpdateFPS() osl_getSystemTime(&maDataUpdateStartTime); } osl_getSystemTime(&maDataUpdateEndTime); - addScreenTextShape(maDataUpdateFPS, glm::vec2(-0.69f, 0.99f), 0.1f); + addScreenTextShape(maDataUpdateFPS, glm::vec2(-0.69f, 0.99f), 0.06f); } void GL3DBarChart::recordBarHistory(sal_uInt32 &nBarID, float &nVal) |