{"action":"created","issue":{"url":"https://api.github.com/repos/mono/MonoGame/issues/2978","labels_url":"https://api.github.com/repos/mono/MonoGame/issues/2978/labels{/name}","comments_url":"https://api.github.com/repos/mono/MonoGame/issues/2978/comments","events_url":"https://api.github.com/repos/mono/MonoGame/issues/2978/events","html_url":"https://github.com/mono/MonoGame/issues/2978","id":42452979,"number":2978,"title":"SpriteBatch disregardes floating point values","user":{"login":"jamesford42","id":155688,"avatar_url":"https://avatars.githubusercontent.com/u/155688?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesford42","html_url":"https://github.com/jamesford42","followers_url":"https://api.github.com/users/jamesford42/followers","following_url":"https://api.github.com/users/jamesford42/following{/other_user}","gists_url":"https://api.github.com/users/jamesford42/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesford42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesford42/subscriptions","organizations_url":"https://api.github.com/users/jamesford42/orgs","repos_url":"https://api.github.com/users/jamesford42/repos","events_url":"https://api.github.com/users/jamesford42/events{/privacy}","received_events_url":"https://api.github.com/users/jamesford42/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mono/MonoGame/labels/Help%20Wanted","name":"Help Wanted","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-09-10T19:52:24Z","updated_at":"2015-04-27T20:25:10Z","closed_at":null,"body":"SpriteBatch draw methods which take a Vector2 position and/or a Vector2 scale are actually snapping to pixel coordinates prior to rendering (rounding to integers). \r\n\r\nMy recollection of XNA behavior, which probably needs to be verified, is that this was not the case. As I recall having to add 'round' calls to all positions passed in to DrawString or the text would be very blurry otherwise. \r\n\r\nNevertheless, not having the 'ability' to render with subpixel precision is a serious problem for smoothly scaling / positioning of a sprite. If you want to round to integers, use the rectangle api or round it yourself prior to calling draw. If you pass in a position or size with floating point precision spritebatch should assume it was intentional and obey it."},"comment":{"url":"https://api.github.com/repos/mono/MonoGame/issues/comments/96806177","html_url":"https://github.com/mono/MonoGame/issues/2978#issuecomment-96806177","issue_url":"https://api.github.com/repos/mono/MonoGame/issues/2978","id":96806177,"user":{"login":"jamesford42","id":155688,"avatar_url":"https://avatars.githubusercontent.com/u/155688?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesford42","html_url":"https://github.com/jamesford42","followers_url":"https://api.github.com/users/jamesford42/followers","following_url":"https://api.github.com/users/jamesford42/following{/other_user}","gists_url":"https://api.github.com/users/jamesford42/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesford42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesford42/subscriptions","organizations_url":"https://api.github.com/users/jamesford42/orgs","repos_url":"https://api.github.com/users/jamesford42/repos","events_url":"https://api.github.com/users/jamesford42/events{/privacy}","received_events_url":"https://api.github.com/users/jamesford42/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T20:25:10Z","updated_at":"2015-04-27T20:25:10Z","body":"Oops, missclick."}}