中文亚洲精品无码_熟女乱子伦免费_人人超碰人人爱国产_亚洲熟妇女综合网

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

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

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

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

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

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

using Unity.Entities;
using Unity.Jobs;
using Unity.Transforms;
/// <summary>
/// 支持多線程 但不支持主線程執(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

如下圖是三個執(zhí)行篩選的方法限制,簡單理解就是:
Run:非Burst編譯下 可訪問所有成員,可修改實體?!局骶€程執(zhí)行】
Schedule:僅能獲取局部成員,可修改實體。【新開一個后臺線程執(zhí)行】
ScheduleParallel:僅能獲取局部成員,可以讀取實體,但不能修改實體,并且可讀數(shù)據(jù)只允許存儲到WithReadOnly(xxx)方法標(biāo)記的只讀變量內(nèi)。【多線程并行執(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://www.risenshineclean.com/news/1604.html

相關(guān)文章:

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