{"action":"created","issue":{"url":"https://api.github.com/repos/mono/MonoGame/issues/3948","labels_url":"https://api.github.com/repos/mono/MonoGame/issues/3948/labels{/name}","comments_url":"https://api.github.com/repos/mono/MonoGame/issues/3948/comments","events_url":"https://api.github.com/repos/mono/MonoGame/issues/3948/events","html_url":"https://github.com/mono/MonoGame/issues/3948","id":89423475,"number":3948,"title":"Windows 8.1 Universal on Phone - Graphics Glitch on Startup","user":{"login":"jakepoz","id":392417,"avatar_url":"https://avatars.githubusercontent.com/u/392417?v=3","gravatar_id":"","url":"https://api.github.com/users/jakepoz","html_url":"https://github.com/jakepoz","followers_url":"https://api.github.com/users/jakepoz/followers","following_url":"https://api.github.com/users/jakepoz/following{/other_user}","gists_url":"https://api.github.com/users/jakepoz/gists{/gist_id}","starred_url":"https://api.github.com/users/jakepoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakepoz/subscriptions","organizations_url":"https://api.github.com/users/jakepoz/orgs","repos_url":"https://api.github.com/users/jakepoz/repos","events_url":"https://api.github.com/users/jakepoz/events{/privacy}","received_events_url":"https://api.github.com/users/jakepoz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-18T23:30:39Z","updated_at":"2015-06-19T00:31:38Z","closed_at":null,"body":"This bug occurs with Windows 8.1 Universal projects and the default Monogame templates running the latest nightly build (6/18/15, as well as 3.4 release builds).\r\n\r\nWe notice that very often on app startup, there is perhaps half a second where the graphics do not take up the full screen. This happens both on the Windows Phone Emulator and on a Lumia 920 test device. We do not see it when creating Windows Phone 8.0 projects, or when running on the desktop.\r\n\r\nYou can see it very clearly in this video:\r\nhttps://www.youtube.com/watch?v=OAWHxEiTdnw\r\n\r\nAs the app starts up, it first renders to the top half of the screen. After half a second, rendering starts happening like normal.\r\n\r\nPlease let me know if any other information is needed to get a repro of this issue."},"comment":{"url":"https://api.github.com/repos/mono/MonoGame/issues/comments/113328728","html_url":"https://github.com/mono/MonoGame/issues/3948#issuecomment-113328728","issue_url":"https://api.github.com/repos/mono/MonoGame/issues/3948","id":113328728,"user":{"login":"jakepoz","id":392417,"avatar_url":"https://avatars.githubusercontent.com/u/392417?v=3","gravatar_id":"","url":"https://api.github.com/users/jakepoz","html_url":"https://github.com/jakepoz","followers_url":"https://api.github.com/users/jakepoz/followers","following_url":"https://api.github.com/users/jakepoz/following{/other_user}","gists_url":"https://api.github.com/users/jakepoz/gists{/gist_id}","starred_url":"https://api.github.com/users/jakepoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakepoz/subscriptions","organizations_url":"https://api.github.com/users/jakepoz/orgs","repos_url":"https://api.github.com/users/jakepoz/repos","events_url":"https://api.github.com/users/jakepoz/events{/privacy}","received_events_url":"https://api.github.com/users/jakepoz/received_events","type":"User","site_admin":false},"created_at":"2015-06-19T00:31:38Z","updated_at":"2015-06-19T00:31:38Z","body":"Doing a bit of digging here, I believe this is related to SupportedOrientations and their initial states.\r\n\r\nIf you comment out the line shown in the sample:\r\n```C#\r\ngraphics.SupportedOrientations = DisplayOrientation.LandscapeLeft | DisplayOrientation.LandscapeRight;\r\n```\r\n\r\nand you run the template project starting in portrait mode, there is no graphics glitch. However, the graphics are scaled weird, because Monogame thinks your screen is 640x384 in size yet it scales the viewport to that. If you then rotate the device to landscape, the graphics device gets reset to look proper, and then if you rotate back again to portrait, the graphics device gets reset again and the portrait mode works properly too.\r\n\r\nI believe what's happening is that on startup, we see a duplicate initialization of the graphics device, once for some strange 640x384 size and then again for whatever the proper size is. "}}