{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/buck/issues/392","labels_url":"https://api.github.com/repos/facebook/buck/issues/392/labels{/name}","comments_url":"https://api.github.com/repos/facebook/buck/issues/392/comments","events_url":"https://api.github.com/repos/facebook/buck/issues/392/events","html_url":"https://github.com/facebook/buck/issues/392","id":100450848,"number":392,"title":"App built with buck is zoomed and poor performance","user":{"login":"bkase","id":515445,"avatar_url":"https://avatars.githubusercontent.com/u/515445?v=3","gravatar_id":"","url":"https://api.github.com/users/bkase","html_url":"https://github.com/bkase","followers_url":"https://api.github.com/users/bkase/followers","following_url":"https://api.github.com/users/bkase/following{/other_user}","gists_url":"https://api.github.com/users/bkase/gists{/gist_id}","starred_url":"https://api.github.com/users/bkase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkase/subscriptions","organizations_url":"https://api.github.com/users/bkase/orgs","repos_url":"https://api.github.com/users/bkase/repos","events_url":"https://api.github.com/users/bkase/events{/privacy}","received_events_url":"https://api.github.com/users/bkase/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-12T02:14:58Z","updated_at":"2015-08-12T23:26:06Z","closed_at":null,"body":"Thanks for open-sourcing buck!\r\n\r\nDue to excruciatingly slow build times with gradle, I've been porting our mostly-kotlin Android app over to buck on and off for the past week.\r\n\r\nAt this point, I've managed to get the app building (way faster than with gradle!) and running, but I see some problems at runtime:\r\n\r\na. (testing on a xxxhdpi Nexus 6) the app seems to be trying to render at hdpi and upscaling -- our layouts seem very zoomed in when compared to the gradle output (see screenshots top=buck build, bottom=gradle build)\r\n\r\n![bad screenshot](http://i.imgur.com/dWwgit5l.png)\r\n\r\n![good screenshot](http://i.imgur.com/GJiu7YBl.jpg)\r\n\r\nb. The framerate is extremely slow when a user interacts with views maybe ~5fps in some activities compared to a smooth 60fps when built with gradle\r\n\r\nWhen I use the deprecated since sdk-level 11 `<supports-screen>` tag in AndroidManifest.xml and add `android:xlargeScreens=\"true\"`, the app appears slightly less zoomed in (I assume it is being rendered at xhdpi and upscaling in this case).\r\n\r\nI tried decompiling the two apks and diffing the AndroidManifest.xml files and there isn't anything different other than a few `<meta-data>` tags (which are different on purpose).\r\n\r\nIf it matters, I got multidex working with Google's multidex support library, but not with exopackage --  I can talk more about the problems I saw there if necessary.\r\n\r\nHere is the `android_binary` rule\r\n\r\n```\r\nandroid_binary(\r\n\tname = 'app',\r\n\tmanifest = 'AndroidManifest.xml',\r\n\tkeystore = ':debug_keystore',\r\n        use_split_dex = True,\r\n        primary_dex_patterns = [\r\n            /* snip */\r\n        ],\r\n\tdeps = [\r\n\t\t'//app:app',\r\n\t\t'//app:res',\r\n\t\t'//kotlin-lib:runtime',\r\n\t],\r\n)\r\n```\r\n\r\nDoes anyone know why these problems are happening and/or a way to fix them?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/facebook/buck/issues/comments/130476281","html_url":"https://github.com/facebook/buck/issues/392#issuecomment-130476281","issue_url":"https://api.github.com/repos/facebook/buck/issues/392","id":130476281,"user":{"login":"dreiss","id":4121,"avatar_url":"https://avatars.githubusercontent.com/u/4121?v=3","gravatar_id":"","url":"https://api.github.com/users/dreiss","html_url":"https://github.com/dreiss","followers_url":"https://api.github.com/users/dreiss/followers","following_url":"https://api.github.com/users/dreiss/following{/other_user}","gists_url":"https://api.github.com/users/dreiss/gists{/gist_id}","starred_url":"https://api.github.com/users/dreiss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dreiss/subscriptions","organizations_url":"https://api.github.com/users/dreiss/orgs","repos_url":"https://api.github.com/users/dreiss/repos","events_url":"https://api.github.com/users/dreiss/events{/privacy}","received_events_url":"https://api.github.com/users/dreiss/received_events","type":"User","site_admin":false},"created_at":"2015-08-12T23:26:06Z","updated_at":"2015-08-12T23:26:06Z","body":"> I tried decompiling the two apks and diffing the AndroidManifest.xml files and there isn't anything different other than a few <meta-data> tags (which are different on purpose).\r\n\r\nDid you use apktool or aapt dump xmltree?  IIRC, apktool doesn't show the target-sdk, which could cause hardware acceleration to be disabled.\r\n\r\nP.S.: What's up, Brandon?"}}