{"action":"created","issue":{"url":"https://api.github.com/repos/kivy/kivy/issues/2450","labels_url":"https://api.github.com/repos/kivy/kivy/issues/2450/labels{/name}","comments_url":"https://api.github.com/repos/kivy/kivy/issues/2450/comments","events_url":"https://api.github.com/repos/kivy/kivy/issues/2450/events","html_url":"https://github.com/kivy/kivy/issues/2450","id":41813852,"number":2450,"title":"Label update (changing text) could have performance improvments","user":{"login":"chozabu","id":937160,"avatar_url":"https://avatars.githubusercontent.com/u/937160?v=3","gravatar_id":"","url":"https://api.github.com/users/chozabu","html_url":"https://github.com/chozabu","followers_url":"https://api.github.com/users/chozabu/followers","following_url":"https://api.github.com/users/chozabu/following{/other_user}","gists_url":"https://api.github.com/users/chozabu/gists{/gist_id}","starred_url":"https://api.github.com/users/chozabu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chozabu/subscriptions","organizations_url":"https://api.github.com/users/chozabu/orgs","repos_url":"https://api.github.com/users/chozabu/repos","events_url":"https://api.github.com/users/chozabu/events{/privacy}","received_events_url":"https://api.github.com/users/chozabu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kivy/kivy/labels/incomplete","name":"incomplete","color":"DDDDDD"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2014-09-03T13:05:38Z","updated_at":"2015-02-20T19:35:36Z","closed_at":null,"body":"Updating a label each frame (like the level timer in my game) seems to cause performance issues.\r\n\r\nIt looks like the root of this problem is Label internally re-rendering the text with pygame, and replacing the opengl texture.\r\n\r\nA possible partial solution could be to have the option for pre-rendering a font at a given size - then composing a widget of several textures, one for each char. As inclement points out, this would have kerning issues. Perhaps not such an issue for monospace fonts?\r\n\r\n<bountysource-plugin>\r\n\r\n---\r\nWant to back this issue? **[Place a bounty on it!](https://www.bountysource.com/issues/4189037-label-update-changing-text-could-have-performance-improvments?utm_campaign=plugin&utm_content=tracker%2F42681&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F42681&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/kivy/kivy/issues/comments/75304662","html_url":"https://github.com/kivy/kivy/issues/2450#issuecomment-75304662","issue_url":"https://api.github.com/repos/kivy/kivy/issues/2450","id":75304662,"user":{"login":"brentpicasso","id":3267533,"avatar_url":"https://avatars.githubusercontent.com/u/3267533?v=3","gravatar_id":"","url":"https://api.github.com/users/brentpicasso","html_url":"https://github.com/brentpicasso","followers_url":"https://api.github.com/users/brentpicasso/followers","following_url":"https://api.github.com/users/brentpicasso/following{/other_user}","gists_url":"https://api.github.com/users/brentpicasso/gists{/gist_id}","starred_url":"https://api.github.com/users/brentpicasso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brentpicasso/subscriptions","organizations_url":"https://api.github.com/users/brentpicasso/orgs","repos_url":"https://api.github.com/users/brentpicasso/repos","events_url":"https://api.github.com/users/brentpicasso/events{/privacy}","received_events_url":"https://api.github.com/users/brentpicasso/received_events","type":"User","site_admin":false},"created_at":"2015-02-20T19:35:36Z","updated_at":"2015-02-20T19:35:36Z","body":"Here's a video of the app in action. desktop rendering is pretty decent indeed with the current approach. \r\nhttps://www.youtube.com/watch?v=7vQFcxZjDVw\r\n"}}