I-Drawn Apart, indlela yokuchonga umsebenzisi esekwe kwi-GPU

Zimbalwa iintsuku ezidlulileyo kwavela iindaba ukuba abaphandi ukusuka kwiYunivesithi yaseBen-Gurion (kwaSirayeli), iYunivesithi yaseLille (eFransi) kunye neYunivesithi yaseAdelaide (eOstreliya) baphuhlise indlela entsha yokuchonga izixhobo yabasebenzisi ngokubona iiparamitha ze-GPU kwisikhangeli sewebhu.

Indlela ibizwa ngokuba "Utsalwa ngokwahlukeneyo" kwaye usekwe kusetyenziso lweWebGL ukufumana iprofayile ye-GPU, enokuphucula ngokubonakalayo ukuchaneka kweendlela zokulandela umkhondo ezisebenza ngaphandle kokusebenzisa iikuki kwaye ngaphandle kokugcina isazisi kwinkqubo yomsebenzisi.

Iindlela ezithi uthathele ingqalelo iimpawu zonikezelo, i-GPU, istaki segrafiki, kunye nabaqhubi xa zichonga ukuba zisetyenziswe ngaphambili, kodwa zazilinganiselwe kwithuba lokwahlula izixhobo kuphela kwinqanaba leemodeli ezahlukeneyo zamakhadi evidiyo kunye nee-GPU, oko kukuthi, ingasetyenziselwa kuphela njengento eyongezelelweyo ukunyusa amathuba okuchongwa.

Uphawu oluphambili yendlela entsha ethi "Drawn Apart". kukuba ayiphelelanga ekwahluleni iimodeli ezahlukeneyo zeGPU, kodwa zama ukuchonga umahluko phakathi kweGPU ezifanayo yemodeli efanayo, ngenxa yokwahluka kwenkqubo yokuvelisa iitshiphusi eziyiliweyo.

Kukwakhankanyiwe ukuba utshintsho olwenzekayo ngexesha lenkqubo yemveliso luyajongwa ukwenza ukuba kwenzeke ukubumba okungaphindiyo kwiimodeli zesixhobo esifanayo.

Kwavela ukuba lo mahluko unokuchongwa ngokubala inani leeyunithi zokubulawa kunye nokuhlalutya ukusebenza kwazo kwi-GPU. Njengeemvelaphi zokuchonga iimodeli ezahlukeneyo ze-GPU, iitshekhi ezisekwe kwiseti yemisebenzi yetrigonometric, imisebenzi enengqondo kunye nokubalwa kweengongoma ezidadayo zasetyenziswa. Ukuchonga iiyantlukwano kwiGPU efanayo, inani lemisonto esebenza ngaxeshanye xa kuqhuba i-vertex shaders kuqikelelwe.

Isiphumo esityhiliweyo sicingelwa ukuba sibangelwa yiyantlukwano kulawulo lobushushu kunye nokusetyenziswa kwamandla eemeko ezahlukeneyo ze-chip (isiphumo esifanayo saboniswa ngaphambili kwi-CPU: iiprosesa ezifanayo zibonise ukusetyenziswa kwamandla ahlukeneyo xa kuqhuba iprosesa efanayo).

Kuba imisebenzi ngeWebGL ingahambelaniyo, awukwazi ukusebenzisa ngokuthe ngqo ukusebenza.now() JavaScript API ukulinganisa ixesha labo lokwenziwa, ngoko ke amaqhinga amathathu aye acetywa ukulinganisa ixesha:

  • Kwiskrini: unikezelo lwendawo kwikhanvasi yeHTML kunye nomlinganiselo wexesha lokuphendula lomsebenzi wokufowunelwa ovezwe nge Window.requestAnimationFrame API kwaye ebizwa emva kokuba unikezelo lugqityiwe.
  • ngaphandle kwesikrini: Sebenzisa umsebenzi kwaye unikezele umboniso kwinto ye-OffscreenCanvas ngokulinganisa ixesha lokwenziwa komyalelo we-converterToBlob.
  • GPU: ukubonelela ngento ye-OffscreenCanvas, kodwa ngesibali-xesha esibonelelwe yiWebGL ukulinganisa ixesha, kuthathelwa ingqalelo ubude bexesha lokuphunyezwa kweseti yemiyalelo kwicala leGPU.

Kwinkqubo yokudala isazisi Iitshekhi ezingama-50 ziyenziwa kwisixhobo ngasinye, ngasinye sinemilinganiselo eli-176 eneempawu ezili-16 ezahlukahlukeneyo. Uvavanyo, ngexesha apho idatha eqokelelwe kwizixhobo ze-2500 kunye ne-1605 GPUs ezahlukeneyo, ibonise ukwanda kwe-67% ekusebenzeni kakuhle yeendlela zokuchonga ezidityanisiweyo ngokongeza inkxaso yeDraw Apart kubo.

Ngokukodwa, indlela edibeneyo ye-FP-STALKER, i-avareji, ibonelele ngokuchongwa ngaphakathi kweentsuku ze-17,5, kwaye idibene ne-Drawn Apart, ixesha lokuchongwa liye landa kwiintsuku ze-28.

Kuyaphawuleka ukuba ukuchaneka kwachatshazelwa bubushushu beGPU kwaye, kwezinye izixhobo, ukuqala ngokutsha inkqubo kubangele ukugqwetheka kwesazisi. Xa indlela isetyenziswe ngokudibeneyo nezinye iindlela isazisi esingathanga ngqo, ukuchaneka kunokunyuswa kakhulu. Kwakhona kucetywayo ukwandisa ukuchaneka ngokusebenzisa i-compute shaders emva kokuzinziswa kwe-WebGPU API entsha.

I-Intel, i-ARM, i-Google, i-Khronos, i-Mozilla, kunye ne-Brave zaziswe ngalo mbandela kwangoko ngo-2020, kodwa iinkcukacha zendlela zisandula kutyhilwa.

Phakathi kwezinye izinto, abaphandi bapapashe imizekelo esebenzayo ebhalwe kwiJavaScript kunye ne-GLSL enokusebenza kunye nangaphandle kokubonisa ulwazi kwisikrini. Kwakhona kwi-Intel GEN 3/4/8/10 ye-GPU esekelwe kwiinkqubo, iiseti zedatha ziye zapapashwa ukuze zihlukanise ulwazi olukhutshwe kwiinkqubo zokufunda zoomatshini.

Gqibela ukuba unomdla wokwazi okungakumbi ngayo, ungazijonga iinkcukacha kwi ukulandela ikhonkco.


Shiya uluvo lwakho

Idilesi yakho ye email aziyi kupapashwa. ezidingekayo ziphawulwe *

*

*

  1. Inoxanduva lwedatha: I-AB Internet Networks 2008 SL
  2. Injongo yedatha: Ulawulo lwe-SPAM, ulawulo lwezimvo.
  3. Umthetho: Imvume yakho
  4. Unxibelelwano lwedatha: Idatha ayizukuhanjiswa kubantu besithathu ngaphandle koxanduva lomthetho.
  5. Ukugcinwa kweenkcukacha
  6. Amalungelo: Ngalo naliphi na ixesha unganciphisa, uphinde uphinde ucime ulwazi lwakho.