cocos-enhance-kit/assets/js/f38ce5ed.1a7b92ea.js
2024-11-29 14:09:52 +08:00

1 line
6.8 KiB
JavaScript

"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9445],{3905:function(e,t,r){r.d(t,{Zo:function(){return l},kt:function(){return f}});var n=r(67294);function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var s=n.createContext({}),c=function(e){var t=n.useContext(s),r=t;return e&&(r="function"==typeof e?e(t):o(o({},t),e)),r},l=function(e){var t=c(e.components);return n.createElement(s.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},d=n.forwardRef((function(e,t){var r=e.components,i=e.mdxType,a=e.originalType,s=e.parentName,l=u(e,["components","mdxType","originalType","parentName"]),d=c(r),f=i,m=d["".concat(s,".").concat(f)]||d[f]||p[f]||a;return r?n.createElement(m,o(o({ref:t},l),{},{components:r})):n.createElement(m,o({ref:t},l))}));function f(e,t){var r=arguments,i=t&&t.mdxType;if("string"==typeof e||i){var a=r.length,o=new Array(a);o[0]=d;var u={};for(var s in t)hasOwnProperty.call(t,s)&&(u[s]=t[s]);u.originalType=e,u.mdxType="string"==typeof e?e:i,o[1]=u;for(var c=2;c<a;c++)o[c]=r[c];return n.createElement.apply(null,o)}return n.createElement.apply(null,r)}d.displayName="MDXCreateElement"},81525:function(e,t,r){r.r(t),r.d(t,{assets:function(){return l},contentTitle:function(){return s},default:function(){return f},frontMatter:function(){return u},metadata:function(){return c},toc:function(){return p}});var n=r(87462),i=r(63366),a=(r(67294),r(3905)),o=["components"],u={sidebar_position:2,description:"\u5728\u591a\u7ebf\u7a0b\u4e2d\u64cd\u4f5c\u97f3\u9891\u3002"},s="\u97f3\u9891\u7cfb\u7edf",c={unversionedId:"user-guide/multithread/thread-audio-system",id:"version-2.3.0/user-guide/multithread/thread-audio-system",title:"\u97f3\u9891\u7cfb\u7edf",description:"\u5728\u591a\u7ebf\u7a0b\u4e2d\u64cd\u4f5c\u97f3\u9891\u3002",source:"@site/versioned_docs/version-2.3.0/user-guide/multithread/thread-audio-system.md",sourceDirName:"user-guide/multithread",slug:"/user-guide/multithread/thread-audio-system",permalink:"/cocos-enhance-kit/docs/2.3.0/user-guide/multithread/thread-audio-system",draft:!1,tags:[],version:"2.3.0",sidebarPosition:2,frontMatter:{sidebar_position:2,description:"\u5728\u591a\u7ebf\u7a0b\u4e2d\u64cd\u4f5c\u97f3\u9891\u3002"},sidebar:"tutorialSidebar",previous:{title:"\u8d44\u6e90\u7ba1\u7ebf",permalink:"/cocos-enhance-kit/docs/2.3.0/user-guide/multithread/thread-asset-pipeline"},next:{title:"XMLHttpRequest",permalink:"/cocos-enhance-kit/docs/2.3.0/user-guide/multithread/thread-http"}},l={},p=[{value:"\u8c03\u6574\u5c5e\u6027\u540c\u6b65\u95f4\u9694",id:"\u8c03\u6574\u5c5e\u6027\u540c\u6b65\u95f4\u9694",level:2}],d={toc:p};function f(e){var t=e.components,u=(0,i.Z)(e,o);return(0,a.kt)("wrapper",(0,n.Z)({},d,u,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"\u97f3\u9891\u7cfb\u7edf"},"\u97f3\u9891\u7cfb\u7edf"),(0,a.kt)("p",null,"\u4f9d\u6b21\u70b9\u51fb\u7f16\u8f91\u5668\u7684\u83dc\u5355\u9879 ",(0,a.kt)("strong",{parentName:"p"},"\u9879\u76ee - \u793e\u533a\u7248\u8bbe\u7f6e"),"\uff0c\u7136\u540e\u52fe\u9009 ",(0,a.kt)("strong",{parentName:"p"},"\u591a\u7ebf\u7a0b\u9a71\u52a8\u97f3\u9891\u7cfb\u7edf"),"\uff0c\u5373\u53ef\u542f\u7528\u8fd9\u4e00\u7279\u6027\u3002"),(0,a.kt)("p",null,"\u542f\u7528\u540e\uff0c\u9488\u5bf9\u97f3\u9891\u7684\u6240\u6709\u64cd\u4f5c\u90fd\u4f1a\u5728 Worker \u7ebf\u7a0b\u4e2d\u6267\u884c\uff0c\u5b8c\u5168\u91ca\u653e\u5bf9\u4e3b\u7ebf\u7a0b\u7684\u5360\u7528\u3002"),(0,a.kt)("p",null,"\u4e0b\u9762\u662f\u5728 Android \u8bbe\u5907\u4e0a\uff0c\u5728\u5f00\u542f\u524d\u5bf9\u6e38\u620f\u5e27\u8017\u65f6\u7684\u5206\u6790\u56fe\uff1a"),(0,a.kt)("p",null,(0,a.kt)("img",{alt:"analysis",src:r(63462).Z,width:"1361",height:"648"})),(0,a.kt)("p",null,"\u4e0b\u9762\u662f\u5f00\u542f\u591a\u7ebf\u7a0b\u652f\u6301\u540e\uff1a"),(0,a.kt)("p",null,(0,a.kt)("img",{alt:"analysis-2",src:r(99409).Z,width:"700",height:"641"})),(0,a.kt)("p",null,"\u53ef\u4ee5\u770b\u5230\u6bcf\u6b21\u64ad\u653e\u97f3\u9891\u7684\u8017\u65f6\u4ece 7.5ms \u964d\u4f4e\u81f3 0.6ms\u3002"),(0,a.kt)("h2",{id:"\u8c03\u6574\u5c5e\u6027\u540c\u6b65\u95f4\u9694"},"\u8c03\u6574\u5c5e\u6027\u540c\u6b65\u95f4\u9694"),(0,a.kt)("p",null,"\u542f\u7528\u591a\u7ebf\u7a0b\u652f\u6301\u540e\uff0c\u97f3\u9891\u5b9e\u4f8b\u8fd0\u884c\u5728 Worker \u7ebf\u7a0b\u4e2d\uff0c\u6240\u4ee5\u97f3\u9891\u5c5e\u6027\u662f\u5b9a\u65f6\u540c\u6b65\u66f4\u65b0\u5230\u4e3b\u7ebf\u7a0b\u7684\u3002"),(0,a.kt)("p",null,"\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u95f4\u9694\u65f6\u95f4\u4e3a ",(0,a.kt)("inlineCode",{parentName:"p"},"500")," \u6beb\u79d2\uff0c\u5176\u5b9e\u5927\u90e8\u5206\u9879\u76ee\u90fd\u4e0d\u4f1a\u8bfb\u53d6\u97f3\u9891\u5c5e\u6027\uff0c\u800c\u662f\u76f4\u63a5\u76d1\u542c\u64ad\u653e\u5f00\u59cb\u3001\u64ad\u653e\u7ed3\u675f\u7b49\u97f3\u9891\u4e8b\u4ef6\uff08\u65e0\u8bba\u5982\u4f55\uff0c\u4e8b\u4ef6\u662f\u7acb\u5373\u53d1\u51fa\u7684\uff09\u3002"),(0,a.kt)("p",null,"\u6240\u4ee5\u6211\u4eec\u53ef\u4ee5\u9002\u5f53\u5730\u964d\u4f4e\u540c\u6b65\u9891\u7387\uff0c\u4f18\u5316\u9879\u76ee\u7684\u6027\u80fd\u3002"),(0,a.kt)("p",null,"\u4f9d\u6b21\u70b9\u51fb\u7f16\u8f91\u5668\u7684\u83dc\u5355\u9879 ",(0,a.kt)("strong",{parentName:"p"},"\u9879\u76ee - \u793e\u533a\u7248\u8bbe\u7f6e"),"\uff0c\u7136\u540e\u4fee\u6539 ",(0,a.kt)("strong",{parentName:"p"},"\u5c5e\u6027\u540c\u6b65\u95f4\u9694")," \u7684\u503c\u5373\u53ef\u3002"),(0,a.kt)("p",null,"\u5728\u542f\u7528\u97f3\u9891\u7cfb\u7edf\u7684\u591a\u7ebf\u7a0b\u652f\u6301\u540e\uff0c\u4f1a\u6709\u4e00\u4e9b\u63a5\u53e3\u5dee\u5f02\uff0c\u8bf7\u524d\u5f80 ",(0,a.kt)("a",{parentName:"p",href:"../../breaking-change#%E9%9F%B3%E9%A2%91%E7%B3%BB%E7%BB%9F"},"\u7834\u574f\u6027\u53d8\u66f4")," \u67e5\u770b\u8be6\u60c5\u3002"))}f.isMDXComponent=!0},63462:function(e,t,r){t.Z=r.p+"assets/images/tas-a-708e11c3002ff0308edec691c3815c31.png"},99409:function(e,t,r){t.Z=r.p+"assets/images/tas-a2-6fd2c204512be13ec886aa86a065a974.png"}}]);