{"action":"closed","issue":{"url":"https://api.github.com/repos/ocornut/imgui/issues/124","labels_url":"https://api.github.com/repos/ocornut/imgui/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/ocornut/imgui/issues/124/comments","events_url":"https://api.github.com/repos/ocornut/imgui/issues/124/events","html_url":"https://github.com/ocornut/imgui/issues/124","id":56933551,"number":124,"title":"Optimization question: Is there a way to compute only the \"visible\" portion of data for submission to ImGui?","user":{"login":"Roflraging","id":3121968,"avatar_url":"https://avatars.githubusercontent.com/u/3121968?v=3","gravatar_id":"","url":"https://api.github.com/users/Roflraging","html_url":"https://github.com/Roflraging","followers_url":"https://api.github.com/users/Roflraging/followers","following_url":"https://api.github.com/users/Roflraging/following{/other_user}","gists_url":"https://api.github.com/users/Roflraging/gists{/gist_id}","starred_url":"https://api.github.com/users/Roflraging/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Roflraging/subscriptions","organizations_url":"https://api.github.com/users/Roflraging/orgs","repos_url":"https://api.github.com/users/Roflraging/repos","events_url":"https://api.github.com/users/Roflraging/events{/privacy}","received_events_url":"https://api.github.com/users/Roflraging/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-02-08T01:08:53Z","updated_at":"2015-02-22T18:10:48Z","closed_at":"2015-02-22T18:10:48Z","body":"Hi Omar,\r\n\r\nI've been working on a small data packer tool with a GUI element to see the contents of the pack file.  Our game currently has around ~12,000 files that need to be processed in some way and I show the contents of the pack file like so:\r\n\r\n![screenshot-imgui opengl2 example](https://cloud.githubusercontent.com/assets/3121968/6094700/ae0dd0ce-aefb-11e4-8a4f-d06af567d385.png)\r\n\r\nThe overall layout of the window is very predictable and all data is indexed via simple array accesses.\r\n\r\nRight now I just iterate over all the contents of the pack file and submit everything to ImGui.  Obviously, with as many items in the pack file as I currently have, the performance is low.  Is there some way for me to determine some bounds of the visible contents of the window and still scroll properly so I can keep high perf?\r\n\r\nThanks again, keep up the awesome work!\r\n\r\n-Dale Kim"}}