I-SDL3 ilibazisa inkxaso yaseWayland 

SDL

I-SDL yiseti yamathala eencwadi aphuhliswe ngolwimi lwenkqubo lwe-C olubonelela ngemisebenzi esisiseko yokwenza imisebenzi yemultimedia (i-audio kunye nevidiyo), kunye nokulayishwa kwemifanekiso kunye nokulawula.

I-SDL lithala leencwadi ibonelela ngezixhobo ezinje ngezixhobo ezikhawulezayo ze-2D kunye nemveliso ye-3D, esele sithetha ngayo izihlandlo ezininzi apha kwibhlog (ngesiqhelo kukhupho lwabo olutsha), eli thala leencwadi ixesha elide lafunyanwa lisebenza ngokungagqibekanga kwi-X11, kodwa nge-Wayland njengokhetho lwesibini.

Okwangoku abaphuhlisi basebenza kwisebe elitsha le-SDL3 apho enye yeempawu eziphambili kunye nentsha (ingakumbi) yayikukufuduswa kwe-X11 ngokusetyenziswa kwe-Wayland ngokungagqibekanga, intshukumo ethi ithiyori iphucule imiba emininzi yethala leencwadi.

Kodwa kubonakala ngathi (ubuncinci okwangoku) akukho nanye okanye enye iya kuzalisekiswa kwi-SDL3 ukusukela mva nje Isicelo senziwe kubaphuhlisi, leyo ngokusisiseko ibandakanya ukurhoxisa utshintsho olufuduse isebe leSDL3 ukuze lisebenzise umthetho olandelwayo waseWayland njengento engagqibekanga kwiindawo ezixhasa iWayland kunye neX11 ngaxeshanye.

I-Wayland inenani elikhulu lemiba engasonjululwanga enxulumene nokuqaliswa kokuthintela ukulala komphezulu kunye nokuphunyezwa kwe-FIFO (vsync) okuphulwe ngokusisiseko, okukhokelela ekunciphiseni ukusebenza kwe-GPU.

Oko akuthethi ukuba "kufuneka silungise i-FIFO kwiMesa / abanye abaqhubi", kodwa ukuba ayinakulungiswa konke konke ngaphandle kweprotocol eyongezelelweyo, kule meko fifo-v1 1 .

Ngaphandle kwale protocol, i-vkQueuePresent okanye i-glSwapBuffers mayiyeke ukwenzela 'isakhelo' callback emva kokubonisa umfanekiso. Esona sizathu sinokuthi sibaleke kule nto kwi-SteamOS kukuba i-Gamescope iphumeza eyona nto i-fifo-v1 kwaye siyisebenzisa apho...

Akukho nzuzo kumdlalo ophakathi kunye nosetyenziso olukhetha i-Wayland ukuya kwi-X11, ukuhlehla nje kokusebenza okuliqela kunye nokungasebenziseki okwangoku.
Ngoko ke, kufuneka silubuyisele olu tshintsho de i-fifo-v1 kunye ne-commit-timing-v1 ikhululwe kwaye ubuncinane kuguqulelo oluzinzileyo lwabaqambi abakhulu.

Nangona Isicelo sokutsalwa sijongiwe kwaye samkelwa ngumyili weSDL, ayikadityaniswa kwisiseko sekhowudi. Esona sizathu siphambili bubukho bemiba engasonjululwanga kwimo engqongileyo yaseWayland enxulumene nokutshixwa komphezulu kunye nokuphunyezwa kweFIFO (vsync), okukhokelela ekuncipheni komsebenzi. Le miba ayinakusonjululwa ngokupheleleyo ngaphandle kokuphunyezwa kweeprotocol ezongezelelweyo fifo-v1 kunye ne-commit-timing-v1.

Kucaciswa ukuba, Ngaphandle kokusombulula le miba, ukusuka kwi-X11 ukuya kwi-Wayland akuniki nzuzo ibalulekileyo kwizicelo eziqhelekileyo kunye nemidlalo, kodwa ibangela ukuhla okunzulu kwentsebenzo kunye nokuhlehla okunokwenzeka. Ke ngoko, kucetyiswa ukuba kuqwalaselwe kwakhona ukufuduka ukusuka kwi-SDL ukuya eWayland kuphela emva kokuba i-fifo-v1 kunye ne-commit-timing-v1 protocol zamkelwe kwaye ziphunyezwe ekukhutshweni okuzinzileyo kwabaphathi abakhulu abadibeneyo.

Ngokuphathelele kwityala, kubalulekile ukukhankanya oko Okwangoku ukwamkelwa kwesicelo "kuhlehlisiwe" Ekubeni uSam Lantinga, umdali we-SDL, ukhankanyiwe ukuba ahlaziye esi sicelo esinxulumene nokutshintshwa kwe-Wayland ngokungagqibekanga, ukhankanya ukuba ityala liya kuqwalaselwa kamva (kufuphi nokukhululwa kokugqibela kwe-SDL3), ekubeni ngoku kuye kwagqitywa ukuba ukukhetha ukulungisa le miba ingentla kwaye imeko inokuba yesiqhelo ngelo xesha. Okwangoku, i-Wayland isasebenza kwiinguqulelo ze-SDL 3 zovavanyo olungcono kwiindawo ezise-Wayland kunye nokuqokelela impendulo yomsebenzisi.

Nangona kunjalo Okwangoku kubonakala ngathi yonke into ibonisa ukuba iWayland iya kuba lukhetho lokugqibelaUkuba iingxaki azisonjululwanga kwaye, ngaphezu kwako konke, ukusebenza kakuhle akufikelelwanga, ukulibaziseka kukaWayland njengokusilela kunokuba yinyani.

Okwangoku ungabona imeko yangoku yophuhliso lwesebe elitsha leSDL 3, ebonisa ukuguqulwa kwiinkqubo ezisezantsi ezahlukeneyo, utshintsho lwe-API olunokuthi luchaphazele ukuhambelana, kunye nokucocwa ngokucokisekileyo kweempawu ezithotyiweyo. Ngokomzekelo, kwi-SDL 3 ikhowudi yahlaziywa ngokupheleleyo ukuze isebenze ngesandi, i-backend entsha yokunikezela ngeVulkan API yaqaliswa kwi-2D yokunikezelwa kwe-API, inkxaso ye-HDR yandiswa, i-API yomsebenzi ngeefestile ezicacileyo, phakathi kwezinye izinto. .

Ukuba ukhona unomdla wokwazi inkqubela kwi SDL3 ungasebenzisa uguqulelo lwesilingo olunikezwa ukusuka eli khonkco lilandelayo.Kwelinye icala, ukuba ufuna ukulandela kwingxoxo yokulibaziseka kweWayland, ungakwenza oko kwikhonkco elingezantsi.


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.