{"action":"closed","issue":{"url":"https://api.github.com/repos/liballeg/allegro5/issues/617","repository_url":"https://api.github.com/repos/liballeg/allegro5","labels_url":"https://api.github.com/repos/liballeg/allegro5/issues/617/labels{/name}","comments_url":"https://api.github.com/repos/liballeg/allegro5/issues/617/comments","events_url":"https://api.github.com/repos/liballeg/allegro5/issues/617/events","html_url":"https://github.com/liballeg/allegro5/issues/617","id":147626971,"number":617,"title":"al_hold_bitmap_drawing() high CPU usage when drawing many bitmaps","user":{"login":"fatcerberus","id":4097841,"avatar_url":"https://avatars.githubusercontent.com/u/4097841?v=3","gravatar_id":"","url":"https://api.github.com/users/fatcerberus","html_url":"https://github.com/fatcerberus","followers_url":"https://api.github.com/users/fatcerberus/followers","following_url":"https://api.github.com/users/fatcerberus/following{/other_user}","gists_url":"https://api.github.com/users/fatcerberus/gists{/gist_id}","starred_url":"https://api.github.com/users/fatcerberus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fatcerberus/subscriptions","organizations_url":"https://api.github.com/users/fatcerberus/orgs","repos_url":"https://api.github.com/users/fatcerberus/repos","events_url":"https://api.github.com/users/fatcerberus/events{/privacy}","received_events_url":"https://api.github.com/users/fatcerberus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/liballeg/allegro5/labels/Core%20Library","name":"Core Library","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-04-12T04:12:29Z","updated_at":"2016-07-05T14:18:42Z","closed_at":"2016-07-05T14:18:42Z","body":"In minisphere I use `al_hold_btimap_drawing()` combined with a character atlas to draw text.  I recently noticed that my text rendering performance was dismal and decided to profile it.  The profiler indicates most of my time was being spent on:\r\n\r\n```c\r\nal_hold_bitmap_drawing(false);\r\n```\r\n\r\nGoing down the rabbit hole a bit further reveals that an inordinate amount of time is being spent in `_al_opengl_set_blender()` (15-20% of my execution time is spent there).  Is this something that Allegro can fix?  Does `al_hold_bitmap_drawing()` need optimization, or am I doing something wrong?"}}
{"actor":{"display_login":"fatcerberus"}}