09-05-2018, 07:58 PM
- 1080Ti alinip gecilir, katiliyorum.
- Yeni ozelliklere gore tasarlanan oyunlarin yeni standart olmasi 4-5 yil alir katiliyorum.
<a contenteditable="false" data-ipshover="" data-ipshover-target="<___base_url___>/profile/136-whooosh/?do=hovercard" data-mentionid="136" href="<___base_url___>/profile/136-whooosh/">@Whooosh</a>
Ilk gunlerden bu yana her mimari ile culling performansi ve hafiza optimizasyonlari iyilestiriliyor. Hicbirinde cikip "bir onceki mimaride de culling vardi" denmiyor. Bunda fiyat yuksek olunca oyle bir tepki oldu belki. Ama bu mimarinin onu acik.
HL'dan bu yana cok su akti koptunun altindan. Ama Doom 2016'daki gibi daha modern rendererlara da baktiginizda boyle diyorlar:
http://www.adriancourreges.com/blog/2016...ics-study/
Alıntı:
Quote
Occlusion Queries
<div style="color:#e3e3e3;">
<div>
<div>
Box Test
Red: Occluded
Green: Visible
</div>
</div>
<p style="color:#e3e3e3;">
We want to send as little geometry to render to the GPU as possible so the best way to achieve this is to cull all the meshes which are not directly visible by the player. Most of the occlusion culling in DOOM is done through the Umbra middleware but there are still some GPU occlusion queries performed by the engine to further trim down the visibility set.
<p style="color:#e3e3e3;">
So what’s the idea behind GPU occlusion queries?
First step is to group several meshes of the world into a virtual box encompassing them all, then ask the GPU to render this box against the current depth buffer. If none of the rasterized pixels pass the depth test it means the box is completely occluded and all the world objects inside that box can be safely omitted when rendering.
Well, the thing is these occlusion query results aren’t available right away, you don’t want to stall the GPU pipeline by blocking on a query. Typically, reading results is deferred to the following frames, so it’s necessary to have an algorithm a bit conservative to avoid objects popping.
</div>
Ne diyor? "Umbra middleware ile culling yapiyoruz. Ama o yetmiyor, motorla visibility hesaplamalari icin GPU occlusion queries de yapiyoruz. Ama abartilirsa geometri popping olur". Buna bakip "culling zaten yapiliyor, cull edilmeyen bir sey yok" demek mumkun mu? Tabi ki degil. Hizli bir yontem de degil, onu da soylemisler. GPU'nun rasterizer'ini bu isle mesgul etmek yerine oyuncunun gozunden ekrandaki her seye ray cekip, ray tracing icin zaten orada olan ek donanimini kullanarak, bu isi daha efektif bir sekilde yaptiginda performansin artma ihtimali var demek ki.
HL'ta da yapiliyordu, Doom 2016'da yapiliyor, bir sonraki nesilde de yapilacak. Her seferinde biraz daha iyi yapiliyor. Bu sefer bence bambaska sekilde yapmanin onu aciliyor. Mimaride bu kadar yer tutan bu cekirdekleri nvidia'nin bu tarz optimizasyonlar icin kullanmaya calismazsa ben sasiririm.
Ayrica sadece culling'den soz etmedim yukarida. Variable rate shading'den de soz ettim. Bu sekilde gorulebilirlik hesaplamalari yapilirken ayni zamanda Tensor cekirdekleri de calisiyor olacak. Ray tracing'de 10 isin ile yaratilan goruntuyu temporal degisimleri de goz onune alarak analiz edip 100 isinla yaratilan goruntuye benzeyecek sekilde arayi doldurabilen islem unitesi, bu sefer, ray casting ile gorulebilirlik hesabi yapilan goruntuyu temporal degisimleri de goz onune alarak analiz edip "suradaki shader'i daha dusuk precision'da calistiralim, buradakini yuksek calistiralim, burada zaten sahnede degisen bir sey olmadi, aynisini cizelim" diyerek daha az performans kaybiyla cizebiliyor olacak (benim tahminim bu yonde).
Bunlar benim aklima gelen iki ornek. Acikcasi deep learning soz konusu oldugunda yapilabileceklerin sinirini tahmin edebilecegimi sanmiyorum.
Yanlis anlasilmasin, "burada optimizasyona cok pay var, gidip bunu alalim" demiyorum. En faydali sekilde butcemi harcayayim diyorsaniz 1080Ti alip gecin, bu mimarinin de en azindan bir sonraki nesilini bekleyin. Ama nvidia henuz elindeki butun kartlari gostermedi diye dag fare dogurdu sanmayin.

![[Resim: 13_occ_quer.png]](http://www.adriancourreges.com/img/blog/2016/doom2016/shot/13_occ_quer.png)
![[Resim: dBrRYL.png]](https://i.hizliresim.com/dBrRYL.png)
![[Resim: ODbPQ5.png]](https://i.hizliresim.com/ODbPQ5.png)
