国产亚洲精品福利在线无卡一,国产精久久一区二区三区,亚洲精品无码国模,精品久久久久久无码专区不卡

當(dāng)前位置: 首頁(yè) > news >正文

網(wǎng)站縮放代碼專(zhuān)業(yè)網(wǎng)站優(yōu)化推廣

網(wǎng)站縮放代碼,專(zhuān)業(yè)網(wǎng)站優(yōu)化推廣,網(wǎng)站建設(shè)的發(fā)展,現(xiàn)在疫情又來(lái)了嗎最新消息ComponentSystem&#xff1a;僅支持主線(xiàn)程執(zhí)行&#xff0c;不支持多線(xiàn)程&#xff0c;并且無(wú)法使用SystemBase介紹的擴(kuò)展方法。 using Unity.Entities; using Unity.Transforms; using Unity.Mathematics;/// <summary> /// 僅主線(xiàn)程執(zhí)行&#xff0c;不支持多線(xiàn)程 /// &l…

?ComponentSystem:僅支持主線(xiàn)程執(zhí)行,不支持多線(xiàn)程,并且無(wú)法使用SystemBase介紹的擴(kuò)展方法。

using Unity.Entities;
using Unity.Transforms;
using Unity.Mathematics;/// <summary>
/// 僅主線(xiàn)程執(zhí)行,不支持多線(xiàn)程
/// </summary>
public class MyComponentSystem : ComponentSystem
{protected override void OnUpdate(){Entities.ForEach((ref Translation trans) =>{trans.Value = new float3(0, 1, 1);});//無(wú)法使用SystemBase的其他擴(kuò)展功能}
}

JobComponentSystem:僅支持多線(xiàn)程,不支持主線(xiàn)程,可以使用擴(kuò)展方法,并且重寫(xiě)的方法與其他都不同,它需要一個(gè)JobHandle返回值?

using Unity.Entities;
using Unity.Jobs;
using Unity.Transforms;
/// <summary>
/// 支持多線(xiàn)程 但不支持主線(xiàn)程執(zhí)行
/// </summary>
public class MyJobComponentSystem : JobComponentSystem
{protected override JobHandle OnUpdate(JobHandle inputDeps){return Entities.ForEach((ref Translation trans) =>{trans.Value = new Unity.Mathematics.float3(0, 0, 1);}).WithName("MyName").Schedule(inputDeps);//可以使用SystemBase擴(kuò)展方法}
}

具體文檔:Using Entities.ForEach | Entities | 0.50.1-preview.2

如下圖是三個(gè)執(zhí)行篩選的方法限制,簡(jiǎn)單理解就是:
Run:非Burst編譯下 可訪(fǎng)問(wèn)所有成員,可修改實(shí)體?!局骶€(xiàn)程執(zhí)行】
Schedule:僅能獲取局部成員,可修改實(shí)體。【新開(kāi)一個(gè)后臺(tái)線(xiàn)程執(zhí)行】
ScheduleParallel:僅能獲取局部成員,可以讀取實(shí)體,但不能修改實(shí)體,并且可讀數(shù)據(jù)只允許存儲(chǔ)到WithReadOnly(xxx)方法標(biāo)記的只讀變量?jī)?nèi)?!径嗑€(xiàn)程并行執(zhí)行】

Supported FeatureRunScheduleScheduleParallel
Capture local value typexxx
Capture local reference typex (only WithoutBurst and not in ISystem)
Writing to captured variablesx
Use field on the system classx (only WithoutBurst)
Methods on reference typesx (only WithoutBurst and not in ISystem)
Shared Componentsx (only WithoutBurst and not in ISystem)
Managed Componentsx (only WithoutBurst and not in ISystem)
Structural changesx (only WithStructuralChanges and not in ISystem)
SystemBase.GetComponentxxx
SystemBase.SetComponentxx
GetComponentDataFromEntityxxx (only as ReadOnly)
HasComponentxxx
WithDisposeOnCompletionxxx
WithScheduleGranularityx
http://m.aloenet.com.cn/news/1604.html

相關(guān)文章:

  • 網(wǎng)站建設(shè)手機(jī)版模板愛(ài)站網(wǎng)關(guān)鍵詞查詢(xún)網(wǎng)站
  • 網(wǎng)站如何做404頁(yè)面湖南企業(yè)seo優(yōu)化報(bào)價(jià)
  • 廣州網(wǎng)站建設(shè)哪里買(mǎi)四平網(wǎng)絡(luò)推廣
  • 怎么做觸屏版網(wǎng)站關(guān)鍵詞優(yōu)化是什么意思
  • 網(wǎng)站優(yōu)化 前端怎么做營(yíng)銷(xiāo)模式100個(gè)經(jīng)典案例
  • 用asp做網(wǎng)站span友情鏈接大全
  • 音頻網(wǎng)站開(kāi)發(fā)湖南營(yíng)銷(xiāo)型網(wǎng)站建設(shè)
  • 閑魚(yú)網(wǎng)站建設(shè)費(fèi)用核心關(guān)鍵詞是什么意思
  • 海南網(wǎng)站建設(shè)推廣線(xiàn)上營(yíng)銷(xiāo)渠道有哪些
  • 嘉興網(wǎng)站系統(tǒng)總部外鏈工廠(chǎng)
  • web 網(wǎng)站做甘特圖教育機(jī)構(gòu)排名
  • 自己做國(guó)際網(wǎng)站網(wǎng)絡(luò)營(yíng)銷(xiāo)管理
  • 有沒(méi)有靠譜的推廣平臺(tái)手機(jī)優(yōu)化軟件哪個(gè)好用
  • 怎么用ps做網(wǎng)站圖片nba排名西部和東部
  • 做網(wǎng)站搜索如何顯示官網(wǎng)高端網(wǎng)站定制開(kāi)發(fā)
  • 蘭州網(wǎng)站建設(shè) 冰雨品牌推廣的具體方法
  • 站長(zhǎng)平臺(tái)百度百度直播
  • 新手學(xué)做網(wǎng)站pdf手競(jìng)價(jià)網(wǎng)官網(wǎng)
  • 網(wǎng)頁(yè)設(shè)計(jì)專(zhuān)業(yè)大學(xué)排名網(wǎng)站seo最新優(yōu)化方法
  • 網(wǎng)站選擇理由描述百度seo排名原理
  • 秦皇島網(wǎng)站建設(shè)哪家好天津做優(yōu)化好的公司
  • 博羅做網(wǎng)站報(bào)價(jià)軟文模板
  • 舞鋼市做網(wǎng)站開(kāi)發(fā)的公司網(wǎng)絡(luò)營(yíng)銷(xiāo)的目的是
  • 網(wǎng)站建設(shè)字圖search搜索引擎
  • 武漢手游網(wǎng)站開(kāi)發(fā)推廣賺錢(qián)項(xiàng)目
  • 成都個(gè)人網(wǎng)站seo企業(yè)建站系統(tǒng)
  • 建站平臺(tái)在線(xiàn)提交表格數(shù)字營(yíng)銷(xiāo)工具
  • 微信網(wǎng)站 手機(jī)網(wǎng)站互聯(lián)網(wǎng)廣告平臺(tái)排名
  • 私人網(wǎng)站服務(wù)器搭建怎么建立一個(gè)屬于自己的網(wǎng)站
  • 官方網(wǎng)站打不開(kāi)怎么回事廣州企業(yè)推廣