{"action":"created","issue":{"url":"https://api.github.com/repos/ElonaFoobar/ElonaFoobar/issues/792","repository_url":"https://api.github.com/repos/ElonaFoobar/ElonaFoobar","labels_url":"https://api.github.com/repos/ElonaFoobar/ElonaFoobar/issues/792/labels{/name}","comments_url":"https://api.github.com/repos/ElonaFoobar/ElonaFoobar/issues/792/comments","events_url":"https://api.github.com/repos/ElonaFoobar/ElonaFoobar/issues/792/events","html_url":"https://github.com/ElonaFoobar/ElonaFoobar/issues/792","id":350621949,"node_id":"MDU6SXNzdWUzNTA2MjE5NDk=","number":792,"title":"Navigation slowdown in Help menu","user":{"login":"Morganeon","id":3264587,"node_id":"MDQ6VXNlcjMyNjQ1ODc=","avatar_url":"https://avatars1.githubusercontent.com/u/3264587?v=4","gravatar_id":"","url":"https://api.github.com/users/Morganeon","html_url":"https://github.com/Morganeon","followers_url":"https://api.github.com/users/Morganeon/followers","following_url":"https://api.github.com/users/Morganeon/following{/other_user}","gists_url":"https://api.github.com/users/Morganeon/gists{/gist_id}","starred_url":"https://api.github.com/users/Morganeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Morganeon/subscriptions","organizations_url":"https://api.github.com/users/Morganeon/orgs","repos_url":"https://api.github.com/users/Morganeon/repos","events_url":"https://api.github.com/users/Morganeon/events{/privacy}","received_events_url":"https://api.github.com/users/Morganeon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-14T22:36:41Z","updated_at":"2018-08-15T16:07:14Z","closed_at":null,"author_association":"NONE","body":"# Environment\r\n\r\n* OS version: Windows 7.1\r\n* Elona Foobar version: 0.2.6\r\n\r\n\r\n# Details\r\n\r\nAccessing the *Help* <?> page incur a major slowdown, and after reading one of the category the navigation is also slowed down.\r\n\r\n\r\n# How to reproduce\r\n\r\nPress <?>, scroll to any option, press enter, try to scroll to other option to see lag appearing.\r\n\r\n# Cause\r\n\r\nFirst slowdown is caused by the for loop at line 612 in menu.cpp (5.41s in debug build to get in and out).\r\n\r\nThe for loop goes through 818 items with a rate of 1 item per 8ms, resulting in a >5000 ms loop.\r\n\r\n\r\nNavigation slowdown seems to be linked to the amount of rendered text (A good example being Adventurers in page 3 having a fast navigation, and Rank & Salary on the same page having a really slow navigation)\r\n\r\n\r\n# Solution\r\n\r\nNone for now, will dig deeper into the two issues tomorrow, still familiarizing with the code, forked today."},"comment":{"url":"https://api.github.com/repos/ElonaFoobar/ElonaFoobar/issues/comments/413246849","html_url":"https://github.com/ElonaFoobar/ElonaFoobar/issues/792#issuecomment-413246849","issue_url":"https://api.github.com/repos/ElonaFoobar/ElonaFoobar/issues/792","id":413246849,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzI0Njg0OQ==","user":{"login":"Morganeon","id":3264587,"node_id":"MDQ6VXNlcjMyNjQ1ODc=","avatar_url":"https://avatars1.githubusercontent.com/u/3264587?v=4","gravatar_id":"","url":"https://api.github.com/users/Morganeon","html_url":"https://github.com/Morganeon","followers_url":"https://api.github.com/users/Morganeon/followers","following_url":"https://api.github.com/users/Morganeon/following{/other_user}","gists_url":"https://api.github.com/users/Morganeon/gists{/gist_id}","starred_url":"https://api.github.com/users/Morganeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Morganeon/subscriptions","organizations_url":"https://api.github.com/users/Morganeon/orgs","repos_url":"https://api.github.com/users/Morganeon/repos","events_url":"https://api.github.com/users/Morganeon/events{/privacy}","received_events_url":"https://api.github.com/users/Morganeon/received_events","type":"User","site_admin":false},"created_at":"2018-08-15T16:07:14Z","updated_at":"2018-08-15T16:07:14Z","author_association":"NONE","body":"Starting a PR for this issue."}}
{"actor":{"display_login":"Morganeon"}}