{"action":"created","issue":{"url":"https://api.github.com/repos/tomaka/glium/issues/346","labels_url":"https://api.github.com/repos/tomaka/glium/issues/346/labels{/name}","comments_url":"https://api.github.com/repos/tomaka/glium/issues/346/comments","events_url":"https://api.github.com/repos/tomaka/glium/issues/346/events","html_url":"https://github.com/tomaka/glium/issues/346","id":55096139,"number":346,"title":"question: what API would I use to create a display with window borders and use swap_buffers?","user":{"login":"andrewrk","id":106511,"avatar_url":"https://avatars.githubusercontent.com/u/106511?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewrk","html_url":"https://github.com/andrewrk","followers_url":"https://api.github.com/users/andrewrk/followers","following_url":"https://api.github.com/users/andrewrk/following{/other_user}","gists_url":"https://api.github.com/users/andrewrk/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewrk/subscriptions","organizations_url":"https://api.github.com/users/andrewrk/orgs","repos_url":"https://api.github.com/users/andrewrk/repos","events_url":"https://api.github.com/users/andrewrk/events{/privacy}","received_events_url":"https://api.github.com/users/andrewrk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-22T00:02:51Z","updated_at":"2015-01-22T19:32:34Z","closed_at":null,"body":"glium::Display struct has no `swap_buffers()` method. How would the triangle example be extended to:\r\n\r\n 1. Use vsync and `swap_buffers()` instead of sleeping\r\n 2. have a title bar and window borders like normal windows"},"comment":{"url":"https://api.github.com/repos/tomaka/glium/issues/comments/71082991","html_url":"https://github.com/tomaka/glium/issues/346#issuecomment-71082991","issue_url":"https://api.github.com/repos/tomaka/glium/issues/346","id":71082991,"user":{"login":"tomaka","id":1412254,"avatar_url":"https://avatars.githubusercontent.com/u/1412254?v=3","gravatar_id":"","url":"https://api.github.com/users/tomaka","html_url":"https://github.com/tomaka","followers_url":"https://api.github.com/users/tomaka/followers","following_url":"https://api.github.com/users/tomaka/following{/other_user}","gists_url":"https://api.github.com/users/tomaka/gists{/gist_id}","starred_url":"https://api.github.com/users/tomaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomaka/subscriptions","organizations_url":"https://api.github.com/users/tomaka/orgs","repos_url":"https://api.github.com/users/tomaka/repos","events_url":"https://api.github.com/users/tomaka/events{/privacy}","received_events_url":"https://api.github.com/users/tomaka/received_events","type":"User","site_admin":false},"created_at":"2015-01-22T19:32:34Z","updated_at":"2015-01-22T19:32:34Z","body":"> So the sleep is a workaround for a bug in vsync, is that right?\r\n\r\nYes\r\n\r\n> When I use this example, it looks like vsync works: https://github.com/gfx-rs/gfx-rs/blob/master/examples/glutin/main.rs\r\n\r\nVsync isn't even implemented in glutin on Linux. Your system may automatically enable vsync, but on my system when I remove the sleep the application starts consuming a lot of CPU."}}