From dbdc64592cbd9c2cfa05ddd694546a95b083b354 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Wed, 3 Dec 2014 11:59:39 +0100 Subject: [PATCH] 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 --- platform/default/glfw_view.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/platform/default/glfw_view.cpp b/platform/default/glfw_view.cpp index ed37653bb..4ddcd9019 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*/) {