{"action":"created","issue":{"url":"https://api.github.com/repos/highfidelity/hifi/issues/8449","repository_url":"https://api.github.com/repos/highfidelity/hifi","labels_url":"https://api.github.com/repos/highfidelity/hifi/issues/8449/labels{/name}","comments_url":"https://api.github.com/repos/highfidelity/hifi/issues/8449/comments","events_url":"https://api.github.com/repos/highfidelity/hifi/issues/8449/events","html_url":"https://github.com/highfidelity/hifi/pull/8449","id":171550265,"number":8449,"title":"DO NOT MERGE: Texture Allocation and transfer investigation","user":{"login":"samcake","id":2230265,"avatar_url":"https://avatars.githubusercontent.com/u/2230265?v=3","gravatar_id":"","url":"https://api.github.com/users/samcake","html_url":"https://github.com/samcake","followers_url":"https://api.github.com/users/samcake/followers","following_url":"https://api.github.com/users/samcake/following{/other_user}","gists_url":"https://api.github.com/users/samcake/gists{/gist_id}","starred_url":"https://api.github.com/users/samcake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samcake/subscriptions","organizations_url":"https://api.github.com/users/samcake/orgs","repos_url":"https://api.github.com/users/samcake/repos","events_url":"https://api.github.com/users/samcake/events{/privacy}","received_events_url":"https://api.github.com/users/samcake/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/highfidelity/hifi/labels/DO%20NOT%20MERGE","name":"DO NOT MERGE","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-17T00:43:37Z","updated_at":"2016-08-17T01:31:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/highfidelity/hifi/pulls/8449","html_url":"https://github.com/highfidelity/hifi/pull/8449","diff_url":"https://github.com/highfidelity/hifi/pull/8449.diff","patch_url":"https://github.com/highfidelity/hifi/pull/8449.patch"},"body":"Texture Streaming Investigation\r\n\r\nMethodology:\r\n6 sec captures with nsight starting from one location (Welcome) to Playa\r\nJump (pressing enter from the address bar)\r\nClick focus on nsight window\r\nClick on start capture\r\nThis should take less than the first sec.\r\nUsing a script (renderTextureStats.js) to enable disable the different mode.\r\nIf the \"Do Storage\" is unchecked, then the texture is created but not allocated, so it will show garbage pixels. IN this case, the transfer does happen in 2 global textures allocated at the start of the application but never used\r\nIf the \"Do Transfer\" is unchecked, this work is skipped,  so it will show garbage pixels.\r\nIf the \"Use PBO\" is checked then the transfer is done using PBO.\r\n\r\nThe script also shows the measured time (cpu) for each individual actions\r\n- Storage: the time to allocate the texture (call glTextureStorage) and to setup the tex parameter\r\n- Transfer: the time to execute the transfer from sysmem to video mem of the pixel values\r\n- Waiting: the time measured on cpu from the end of transfer until the gl work is actually executed and finished. THis is measuring the time for a fence added at the end of Transfer to be signaled later. THe fence is checked potentially multiple time through a call to glClienWaitSync(,,0), (supposedely not blocking), when the fence is done, the texture is signaled ready and can be used for rendering\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/highfidelity/hifi/issues/comments/240289258","html_url":"https://github.com/highfidelity/hifi/pull/8449#issuecomment-240289258","issue_url":"https://api.github.com/repos/highfidelity/hifi/issues/8449","id":240289258,"user":{"login":"hifi-gustavo","id":4554450,"avatar_url":"https://avatars.githubusercontent.com/u/4554450?v=3","gravatar_id":"","url":"https://api.github.com/users/hifi-gustavo","html_url":"https://github.com/hifi-gustavo","followers_url":"https://api.github.com/users/hifi-gustavo/followers","following_url":"https://api.github.com/users/hifi-gustavo/following{/other_user}","gists_url":"https://api.github.com/users/hifi-gustavo/gists{/gist_id}","starred_url":"https://api.github.com/users/hifi-gustavo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hifi-gustavo/subscriptions","organizations_url":"https://api.github.com/users/hifi-gustavo/orgs","repos_url":"https://api.github.com/users/hifi-gustavo/repos","events_url":"https://api.github.com/users/hifi-gustavo/events{/privacy}","received_events_url":"https://api.github.com/users/hifi-gustavo/received_events","type":"User","site_admin":false},"created_at":"2016-08-17T01:31:26Z","updated_at":"2016-08-17T01:31:26Z","body":"Build console output for commit: 9de4d25df26ec7950c42232f4598aad6671d6c83 available at: https://gist.github.com/94fc677f50798bfec8b0cc7c740b9481<br/><br/>Installers available for download at: <br/>Windows: http://cachefly.highfidelity.com/HighFidelity-Beta-PR8449-9de4d25.exe<br/>OS X: http://cachefly.highfidelity.com/HighFidelity-Beta-PR8449-9de4d25.dmg"}}
{"actor":{"display_login":"hifi-gustavo"}}