{"action":"closed","issue":{"url":"https://api.github.com/repos/libgdx/libgdx/issues/3112","labels_url":"https://api.github.com/repos/libgdx/libgdx/issues/3112/labels{/name}","comments_url":"https://api.github.com/repos/libgdx/libgdx/issues/3112/comments","events_url":"https://api.github.com/repos/libgdx/libgdx/issues/3112/events","html_url":"https://github.com/libgdx/libgdx/issues/3112","id":74923264,"number":3112,"title":"Libgdx non continuous rendering with saving prefs","user":{"login":"raicabogdan","id":4399340,"avatar_url":"https://avatars.githubusercontent.com/u/4399340?v=3","gravatar_id":"","url":"https://api.github.com/users/raicabogdan","html_url":"https://github.com/raicabogdan","followers_url":"https://api.github.com/users/raicabogdan/followers","following_url":"https://api.github.com/users/raicabogdan/following{/other_user}","gists_url":"https://api.github.com/users/raicabogdan/gists{/gist_id}","starred_url":"https://api.github.com/users/raicabogdan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raicabogdan/subscriptions","organizations_url":"https://api.github.com/users/raicabogdan/orgs","repos_url":"https://api.github.com/users/raicabogdan/repos","events_url":"https://api.github.com/users/raicabogdan/events{/privacy}","received_events_url":"https://api.github.com/users/raicabogdan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-10T13:42:34Z","updated_at":"2015-05-10T21:55:37Z","closed_at":"2015-05-10T21:55:37Z","body":"A simple case I find really stupid, probably me not doing something, but anyway asking just in case. Docs on github don't say much regarding non-continuous rendering about this.\r\n\r\nBasically what I do is saving 1 score at a time (one per game) in the prefs file and then getting the score back to store them in variable. I probably should just update the values from the already stored values in variable(thinking now ..., will probably do that).\r\n\r\nThe issue however is when saving the prefs. Its causing the render to not trigger on input (from docs a render should trigger when an input event is triggered). If I remove the prefs part, the render works fine.\r\n\r\nAlso if I re-enable continuous rendering using\r\n\r\n```` Gdx.graphics.setContinuousRendering(true); ````\r\n\r\nbefore the prefs saving method, then its still not working. Really lost on this one.\r\n\r\nHowever if leaving continuous rendering in place, it seems to work fine. It also works fine if I send another touch input, just that first one seems to be blocking something.\r\n\r\nWhat am I doing?\r\n\r\nThe code I use for the Prefs:\r\n````\r\n@Override\r\npublic void saveScore(String type, int value) {\r\n    preferences.putInteger(type, value);\r\n    preferences.flush();\r\n}\r\n\r\n@Override\r\npublic HashMap<String, Integer> getScore() {\r\n    scores = new HashMap<String, Integer>(3);\r\n\r\n    scores.put(\"wins\", preferences.getInteger(\"wins\", 0));\r\n    scores.put(\"draws\", preferences.getInteger(\"draws\", 0));\r\n    scores.put(\"losses\", preferences.getInteger(\"losses\", 0));\r\n\r\n    return scores;\r\n}\r\n````\r\nI just hope I didn't hit some bug with it, also I would really like to keep the non-continous rendering, its just a simple board game, so the things are mostly static.\r\n\r\nThank you!"}}