ignore imgui.ini

This commit is contained in:
silverweed 2024-07-23 10:43:28 +02:00
parent 3dd6dd85a4
commit 17df4fdeef
2 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View file

@ -5,3 +5,4 @@ build/
rntviewer rntviewer
.gdbhist .gdbhist
.gdb_history .gdb_history
imgui.ini

View file

@ -206,7 +206,8 @@ void viewer_jump_to_cluster(App_State &app, u64 cluster_idx)
assert(app.rndata.n_clusters > 0); assert(app.rndata.n_clusters > 0);
cluster_idx = (cluster_idx + app.rndata.n_clusters) % app.rndata.n_clusters; 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; Page_Info_Node *page = app.rndata.pages;
for (u64 i = 0; i < app.rndata.n_pages; ++i) { for (u64 i = 0; i < app.rndata.n_pages; ++i) {
if (page->cluster_id == cluster_idx) if (page->cluster_id == cluster_idx)