summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-12-03 11:59:39 +0100
committerKonstantin Käfer <mail@kkaefer.com>2014-12-03 11:59:39 +0100
commitdbdc64592cbd9c2cfa05ddd694546a95b083b354 (patch)
treebbd18a3593d122ac97ba292b0b65062d3b09cfeb /platform
parent82f3574d09064a442e30eb2dc7639f473749c5bd (diff)
downloadqtlocation-mapboxgl-dbdc64592cbd9c2cfa05ddd694546a95b083b354.tar.gz
don't set the window title on every frame
this is a significant performance penalty, at least on OS X, and drops our frame rate below 60fps on even simple scenes. instead of showing the position of the map in the window, we should display it elsewhere
Diffstat (limited to 'platform')
-rw-r--r--platform/default/glfw_view.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/platform/default/glfw_view.cpp b/platform/default/glfw_view.cpp
index ed37653bb0..4ddcd9019d 100644
--- a/platform/default/glfw_view.cpp
+++ b/platform/default/glfw_view.cpp
@@ -263,12 +263,6 @@ void GLFWView::notify() {
void GLFWView::swap() {
glfwPostEmptyEvent();
-
- double lon, lat, zoom;
- map->getLonLatZoom(lon, lat, zoom);
- const double bearing = map->getBearing();
- const std::string title = mbgl::util::sprintf<128>("Mapbox GL – %.2f/%.6f/%.6f/%.1f", zoom, lat, lon, bearing);
- glfwSetWindowTitle(window, title.c_str());
}
void GLFWView::notify_map_change(mbgl::MapChange /*change*/, mbgl::timestamp /*delay*/) {