Rendering statistics view (#3322)

Co-authored-by: Bart Louwers <bart@emeel.net>
This commit is contained in:
Adrian Cojocaru
2025-06-03 18:59:51 +03:00
committed by GitHub
parent 3c07cacc4d
commit 2a7249a3b0
81 changed files with 1271 additions and 128 deletions

View File

@@ -278,6 +278,8 @@ GLFWView::GLFWView(bool fullscreen_,
printf("- Press `K` to add a random custom runtime imagery annotation\n");
printf("- Press `L` to add a random line annotation\n");
printf("- Press `W` to pop the last-added annotation off\n");
printf("- Press `V` to toggle custom drawable layer\n");
printf("- Press `B` to toggle rendering stats\n");
printf("- Press `P` to pause tile requests\n");
printf("\n");
printf("- Hold `Control` + mouse drag to rotate\n");
@@ -373,6 +375,9 @@ void GLFWView::onKey(GLFWwindow *window, int key, int /*scancode*/, int action,
case GLFW_KEY_V:
view->toggleCustomDrawableStyle();
break;
case GLFW_KEY_B:
view->map->enableRenderingStatsView(!view->map->isRenderingStatsViewEnabled());
break;
case GLFW_KEY_I:
view->resetDatabaseCallback();
break;