{"action":"created","issue":{"url":"https://api.github.com/repos/supertuxkart/stk-code/issues/2048","repository_url":"https://api.github.com/repos/supertuxkart/stk-code","labels_url":"https://api.github.com/repos/supertuxkart/stk-code/issues/2048/labels{/name}","comments_url":"https://api.github.com/repos/supertuxkart/stk-code/issues/2048/comments","events_url":"https://api.github.com/repos/supertuxkart/stk-code/issues/2048/events","html_url":"https://github.com/supertuxkart/stk-code/issues/2048","id":64494375,"number":2048,"title":"Fix non-hd option","user":{"login":"hiker","id":6138652,"avatar_url":"https://avatars.githubusercontent.com/u/6138652?v=3","gravatar_id":"","url":"https://api.github.com/users/hiker","html_url":"https://github.com/hiker","followers_url":"https://api.github.com/users/hiker/followers","following_url":"https://api.github.com/users/hiker/following{/other_user}","gists_url":"https://api.github.com/users/hiker/gists{/gist_id}","starred_url":"https://api.github.com/users/hiker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hiker/subscriptions","organizations_url":"https://api.github.com/users/hiker/orgs","repos_url":"https://api.github.com/users/hiker/repos","events_url":"https://api.github.com/users/hiker/events{/privacy}","received_events_url":"https://api.github.com/users/hiker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/supertuxkart/stk-code/milestones/12","html_url":"https://github.com/supertuxkart/stk-code/milestones/0.9.3","labels_url":"https://api.github.com/repos/supertuxkart/stk-code/milestones/12/labels","id":1326336,"number":12,"title":"0.9.3","description":"","creator":{"login":"hiker","id":6138652,"avatar_url":"https://avatars.githubusercontent.com/u/6138652?v=3","gravatar_id":"","url":"https://api.github.com/users/hiker","html_url":"https://github.com/hiker","followers_url":"https://api.github.com/users/hiker/followers","following_url":"https://api.github.com/users/hiker/following{/other_user}","gists_url":"https://api.github.com/users/hiker/gists{/gist_id}","starred_url":"https://api.github.com/users/hiker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hiker/subscriptions","organizations_url":"https://api.github.com/users/hiker/orgs","repos_url":"https://api.github.com/users/hiker/repos","events_url":"https://api.github.com/users/hiker/events{/privacy}","received_events_url":"https://api.github.com/users/hiker/received_events","type":"User","site_admin":false},"open_issues":84,"closed_issues":3,"state":"open","created_at":"2015-09-28T08:04:55Z","updated_at":"2016-04-19T06:32:42Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-03-26T10:47:43Z","updated_at":"2016-04-19T06:32:48Z","closed_at":null,"body":"Atm the non-hd option only resizes textures that are in the track directory (i.e. no kart textures, no shared textures, no textures in library objects). That causes stk to crash on hd3000 on windows on certain tracks (because some kart textures are not resized).\r\n\r\nSome of this is fixed in the 'fix_non_hd_option; branch (all textures except fonts are resized if too large). There are still a few issues:\r\n- what to do with the cached, resized textures? The old approach (which resizes any(!) texture to 1/2x1/2 size) stores the resized textured. The new approach in the branch will only resize textures if they are larger as 512x512 (to 512x512 size) - which is better, any quality impact? Atm irrlicht will read the resized texture (and potentially resize them again, e.g. if there should be a 2048x512 texture, it will be cached as 1024x256, and then resized again to 512x256). We should either just remove the whole cache, or if not cache the textures in the right size to avoid scaling twice.\r\n- if we leave the cache enabled, any user with an existing cache (e.g. from beta2) will still get the half sized textures that are cached from a beta/beta2 run).\r\n\r\nSuggestion: for 0.8.2 just disable the cache, and find a proper solution later.\r\n\r\nDifficulty: what if the user first caches all textures smaller, but then decided to run in HD? We need to either invalidate any cached files, or perhaps add the resolution to the cached filename (e.g. texture.png becomes texture.512x256.png).\r\n"},"comment":{"url":"https://api.github.com/repos/supertuxkart/stk-code/issues/comments/211756397","html_url":"https://github.com/supertuxkart/stk-code/issues/2048#issuecomment-211756397","issue_url":"https://api.github.com/repos/supertuxkart/stk-code/issues/2048","id":211756397,"user":{"login":"hiker","id":6138652,"avatar_url":"https://avatars.githubusercontent.com/u/6138652?v=3","gravatar_id":"","url":"https://api.github.com/users/hiker","html_url":"https://github.com/hiker","followers_url":"https://api.github.com/users/hiker/followers","following_url":"https://api.github.com/users/hiker/following{/other_user}","gists_url":"https://api.github.com/users/hiker/gists{/gist_id}","starred_url":"https://api.github.com/users/hiker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hiker/subscriptions","organizations_url":"https://api.github.com/users/hiker/orgs","repos_url":"https://api.github.com/users/hiker/repos","events_url":"https://api.github.com/users/hiker/events{/privacy}","received_events_url":"https://api.github.com/users/hiker/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T06:32:48Z","updated_at":"2016-04-19T06:32:48Z","body":"And postponing again :)"}}