{"action":"created","issue":{"url":"https://api.github.com/repos/GoranM/bdx/issues/76","labels_url":"https://api.github.com/repos/GoranM/bdx/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/GoranM/bdx/issues/76/comments","events_url":"https://api.github.com/repos/GoranM/bdx/issues/76/events","html_url":"https://github.com/GoranM/bdx/issues/76","id":54838433,"number":76,"title":"Profiling","user":{"login":"rafcolson","id":10002909,"avatar_url":"https://avatars.githubusercontent.com/u/10002909?v=3","gravatar_id":"","url":"https://api.github.com/users/rafcolson","html_url":"https://github.com/rafcolson","followers_url":"https://api.github.com/users/rafcolson/followers","following_url":"https://api.github.com/users/rafcolson/following{/other_user}","gists_url":"https://api.github.com/users/rafcolson/gists{/gist_id}","starred_url":"https://api.github.com/users/rafcolson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafcolson/subscriptions","organizations_url":"https://api.github.com/users/rafcolson/orgs","repos_url":"https://api.github.com/users/rafcolson/repos","events_url":"https://api.github.com/users/rafcolson/events{/privacy}","received_events_url":"https://api.github.com/users/rafcolson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":36,"created_at":"2015-01-20T03:03:32Z","updated_at":"2015-04-19T22:05:58Z","closed_at":null,"body":">The easiest test you can run is to actually time the relevant functions, and see how long they take to process, relative to everything else: scene.update() + renderScene().\r\n>\r\n>You should be able to use com.badlogic.gdx.utils.TimeUtils:\r\n>\r\n>```java\r\nlong t = TimeUtils.millis();\r\nfunctionYouWantToTime();\r\nlong tt = TimeUtils.millis();\r\nlong delta = tt - t;\r\n```\r\n>\r\n>If there is truly a significant performance benefit, I would love to know, of course, but I think it's something we should discuss in a different issue (we're quite off-topic in this one).\r\n\r\nI'll be using this issue for relevant information about profiling. Anyone is welcome to join in."},"comment":{"url":"https://api.github.com/repos/GoranM/bdx/issues/comments/94318681","html_url":"https://github.com/GoranM/bdx/issues/76#issuecomment-94318681","issue_url":"https://api.github.com/repos/GoranM/bdx/issues/76","id":94318681,"user":{"login":"rafcolson","id":10002909,"avatar_url":"https://avatars.githubusercontent.com/u/10002909?v=3","gravatar_id":"","url":"https://api.github.com/users/rafcolson","html_url":"https://github.com/rafcolson","followers_url":"https://api.github.com/users/rafcolson/followers","following_url":"https://api.github.com/users/rafcolson/following{/other_user}","gists_url":"https://api.github.com/users/rafcolson/gists{/gist_id}","starred_url":"https://api.github.com/users/rafcolson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafcolson/subscriptions","organizations_url":"https://api.github.com/users/rafcolson/orgs","repos_url":"https://api.github.com/users/rafcolson/repos","events_url":"https://api.github.com/users/rafcolson/events{/privacy}","received_events_url":"https://api.github.com/users/rafcolson/received_events","type":"User","site_admin":false},"created_at":"2015-04-19T22:05:58Z","updated_at":"2015-04-19T22:05:58Z","body":">If you searched the code base for \"exprun\", you would have probably figured this out on your own.\r\n\r\nYes, I probably would have figured out that it is an operator. But it's still hard for me to figure out the workings of it just by reading the code. I don't think I quite understand yet, but I get a better idea now. So thanks.\r\n\r\n>It's true that __Profiler.bdx exists after initial creation, even after the scene is removed from the .blend, but if you were to update BDX, and simply move the .blend to a freshly generated project, you would have problems, because the scene wouldn't exist, and the exported .bdx file wouldn't exist (same problem with packed BDX projects). It may also prove necessary to remove all the scene files prior to export, as we currently do for instantiator files.\r\n>\r\n>With that in mind, I would prefer if we could temporarily import the profiler scene from the default .blend (assuming that's possible), just for the export process.\r\n>\r\n>That should work for all cases.\r\n\r\nRight, so if I understand correctly, I would have to get the scene from the ```game.blend``` in the addons folder (```addons/bdx/gen/game.blend```), convert this temporarily to a *.bdx and store it somewhere for later use. So with every BDX update it should export to *.bdx only once when the project is run for the first time (within that BDX version).\r\n\r\nSo the code should be in ```exporter.py```, correct?\r\n\r\nI'll try some things now and come back to it later.\r\n\r\n>It may also prove necessary to remove all the scene files prior to export, as we currently do for instantiator files.\r\n\r\nI'll leave this to you as I have problems understanding the mechanics behind this. Maybe in the future I  will understand it better. Sorry about that."}}