Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

LookingGlass RenderingOptimizePlan(JP)

1,554 views

Published on

English Version is here:
https://www.slideshare.net/ssuser741a3c/looking-glassrenderinglt-en

第1回 Looking Glass勉強会 でのLT登壇資料です
https://lookingglass.connpass.com/event/115508/

Published in: Technology
  • accessibility Books Library allowing access to top content, including thousands of title from favorite author, plus the ability to read or download a huge selection of books for your pc or smartphone within minutes ,Download or read Ebooks here ... ......................................................................................................................... Download FULL PDF EBOOK here { http://bit.ly/2m6jJ5M }
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THI5 BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

LookingGlass RenderingOptimizePlan(JP)

  1. 1. Looking Glassの Rendering処理を最適化してみる 黒河 優介
  2. 2. Looking Glassの Rendering負荷は高い… 手元のMacBookPro2015じゃ手に負えないほどの描画負荷に…… ゲーミングPCじゃなくて、手元のノートPCで動かしたい!!! 最適化できないか調べよう! その前に描画の仕組みを知ろう!
  3. 3. 描画について調べてみる • まずは描画の状態を知るために Unity FrameDebuggerとRenderDocを立ち上げ ました
  4. 4. 描画の流れ 全て敷き詰めたら最終 結果を描画します Cameraをちょっとず つずらして描画し、そ の結果をタイル状に敷 き詰めていきます
  5. 5. 負荷を見ると… 重いのは Cameraのレンダリングをかなりの 回数するのが原因です! 別のRenderTextureへの転送や最終結果出力 は大したことありませんでした
  6. 6. 描画負荷を下げるアイディア このテクスチャを作るのが負荷の大部分 であるなら… ここの解像度や、描画する回数(5×9) 以外を選択できれば軽くなるんでは…
  7. 7. 実は変えられました!! HoloPlay Capture の Quiltで実は描画の負荷 を変更できます。 ソース見て知りました…
  8. 8. 設定詳細 タイルの数やTextureの解像度などなどはある程度自由に変更で きます。 まずはマシンスペックに合わせていくのが良さそうです。
  9. 9. はい完了!! ではありません!!! クオリティが下がっています!!!! もっと出来ることはあるはず!!
  10. 10. Camera.Renderを分解してみる Camera.Render Culling ShadowMapPassDepthTexturePass Rendering Blit to Tile repeat TileX × TileY
  11. 11. Camera.Renderを分解してみる Camera.Render Culling ShadowMapPassDepthTexturePass Rendering Blit to Tile repeat TileX × TileY ここの処理はループ処理の中でやっていますが、カメラを少しずらした 程度では処理内容の結果が変わらないはずです…。
  12. 12. こうなると良さそうな… Camera.RenderCulling ShadowMapPass DepthTexturePass Rendering Blit to Tile repeat TileX × TileY 最初にCullingとShadowMap生成を事前に処理しておいて、 処理をループの外に出してしまいます
  13. 13. Camera.Renderの中身を変更する… SRP(Scriptable Render Pipeline)で 何とかなりそう!! そうだ!専用のSRP作っちまえ!
  14. 14. RenderPipelineで実現する事 Camera.RenderCulling ShadowMapPass DepthTexturePass Rendering Blit to Tile repeat TileX × TileY LWRPベースにして、影周りに条件付けたら ここもなりました!!
  15. 15. Camera.RenderCulling ShadowMapPass Rendering Blit To Tile repeat TileX × TileY Camera.Render Culling ShadowMapPassDepthTexturePass Rendering Blit To Tile repeat TileX × TileY SourceCode https://github.com/wotakuro/LookingGlassRenderPipeline Before After
  16. 16. これでも満足出来ず… もっと高みのパフォーマンスへ……
  17. 17. 汎用性を捨てて速度を稼ぎに行く! ・専用のCustomShaderでしか動かない前提にしてしまう。 ・ポストプロセスは諦める ・自前実装の覚悟を決める!
  18. 18. さらなる高みへ… 一旦RenderingTextureに完成形の絵を描いてから転送していますが… 直接このTileに描けばよいのでは… Camera.RenderCulling ShadowMapPass Rendering Blit to Tile repeat TileX × TileY
  19. 19. さらなる高みへ… Material切り替えしながら1枚ずつ絵を完成させている現状… このループ処理止めたい…。 Camera.RenderCulling ShadowMapPass Rendering Blit to Tile repeat TileX × TileY
  20. 20. 最速を求めて… Camera.RenderCulling ShadowMapPass Instancingで 直接 TileするTextureに描き込みます!! ループそのものをなくす事で爆速になるに違いないデス!
  21. 21. 現在、試行錯誤中… trying at “feature/instancingdraw” branch

×