From 17df4fdeeff2acb7e9a60f0d48b0627788fcf0bd Mon Sep 17 00:00:00 2001 From: silverweed Date: Tue, 23 Jul 2024 10:43:28 +0200 Subject: [PATCH] ignore imgui.ini --- .gitignore | 1 + src/render.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 582e4b6..ceebf36 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ build/ rntviewer .gdbhist .gdb_history +imgui.ini diff --git a/src/render.cpp b/src/render.cpp index 64799e8..faccf37 100644 --- a/src/render.cpp +++ b/src/render.cpp @@ -206,7 +206,8 @@ void viewer_jump_to_cluster(App_State &app, u64 cluster_idx) assert(app.rndata.n_clusters > 0); cluster_idx = (cluster_idx + app.rndata.n_clusters) % app.rndata.n_clusters; - // @Speed + // @Speed: this is slow! Consider an acceleration structure, or maybe we can reuse + // Page_Info_Groups + binary search? (depends on whether cluster_idx are sorted) Page_Info_Node *page = app.rndata.pages; for (u64 i = 0; i < app.rndata.n_pages; ++i) { if (page->cluster_id == cluster_idx)