mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2024-12-25 19:28:28 +00:00
1 line
6.8 KiB
JavaScript
1 line
6.8 KiB
JavaScript
"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3789],{3905:function(e,t,r){r.d(t,{Zo:function(){return l},kt:function(){return f}});var n=r(67294);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(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?i(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(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,a=function(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var c=n.createContext({}),s=function(e){var t=n.useContext(c),r=t;return e&&(r="function"==typeof e?e(t):o(o({},t),e)),r},l=function(e){var t=s(e.components);return n.createElement(c.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,a=e.mdxType,i=e.originalType,c=e.parentName,l=u(e,["components","mdxType","originalType","parentName"]),d=s(r),f=a,m=d["".concat(c,".").concat(f)]||d[f]||p[f]||i;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,a=t&&t.mdxType;if("string"==typeof e||a){var i=r.length,o=new Array(i);o[0]=d;var u={};for(var c in t)hasOwnProperty.call(t,c)&&(u[c]=t[c]);u.originalType=e,u.mdxType="string"==typeof e?e:a,o[1]=u;for(var s=2;s<i;s++)o[s]=r[s];return n.createElement.apply(null,o)}return n.createElement.apply(null,r)}d.displayName="MDXCreateElement"},89084:function(e,t,r){r.r(t),r.d(t,{assets:function(){return l},contentTitle:function(){return c},default:function(){return f},frontMatter:function(){return u},metadata:function(){return s},toc:function(){return p}});var n=r(87462),a=r(63366),i=(r(67294),r(3905)),o=["components"],u={sidebar_position:2,description:"\u5728\u591a\u7ebf\u7a0b\u4e2d\u64cd\u4f5c\u97f3\u9891\u3002"},c="\u97f3\u9891\u7cfb\u7edf",s={unversionedId:"user-guide/multithread/thread-audio-system",id:"user-guide/multithread/thread-audio-system",title:"\u97f3\u9891\u7cfb\u7edf",description:"\u5728\u591a\u7ebf\u7a0b\u4e2d\u64cd\u4f5c\u97f3\u9891\u3002",source:"@site/docs/user-guide/multithread/thread-audio-system.md",sourceDirName:"user-guide/multithread",slug:"/user-guide/multithread/thread-audio-system",permalink:"/cocos-enhance-kit/docs/next/user-guide/multithread/thread-audio-system",draft:!1,tags:[],version:"current",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/next/user-guide/multithread/thread-asset-pipeline"},next:{title:"XMLHttpRequest",permalink:"/cocos-enhance-kit/docs/next/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,a.Z)(e,o);return(0,i.kt)("wrapper",(0,n.Z)({},d,u,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("h1",{id:"\u97f3\u9891\u7cfb\u7edf"},"\u97f3\u9891\u7cfb\u7edf"),(0,i.kt)("p",null,"\u4f9d\u6b21\u70b9\u51fb\u7f16\u8f91\u5668\u7684\u83dc\u5355\u9879 ",(0,i.kt)("strong",{parentName:"p"},"\u9879\u76ee - \u793e\u533a\u7248\u8bbe\u7f6e"),"\uff0c\u7136\u540e\u52fe\u9009 ",(0,i.kt)("strong",{parentName:"p"},"\u591a\u7ebf\u7a0b\u9a71\u52a8\u97f3\u9891\u7cfb\u7edf"),"\uff0c\u5373\u53ef\u542f\u7528\u8fd9\u4e00\u7279\u6027\u3002"),(0,i.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,i.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,i.kt)("p",null,(0,i.kt)("img",{alt:"analysis",src:r(77549).Z,width:"1361",height:"648"})),(0,i.kt)("p",null,"\u4e0b\u9762\u662f\u5f00\u542f\u591a\u7ebf\u7a0b\u652f\u6301\u540e\uff1a"),(0,i.kt)("p",null,(0,i.kt)("img",{alt:"analysis-2",src:r(49127).Z,width:"700",height:"641"})),(0,i.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,i.kt)("h2",{id:"\u8c03\u6574\u5c5e\u6027\u540c\u6b65\u95f4\u9694"},"\u8c03\u6574\u5c5e\u6027\u540c\u6b65\u95f4\u9694"),(0,i.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,i.kt)("p",null,"\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u95f4\u9694\u65f6\u95f4\u4e3a ",(0,i.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,i.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,i.kt)("p",null,"\u4f9d\u6b21\u70b9\u51fb\u7f16\u8f91\u5668\u7684\u83dc\u5355\u9879 ",(0,i.kt)("strong",{parentName:"p"},"\u9879\u76ee - \u793e\u533a\u7248\u8bbe\u7f6e"),"\uff0c\u7136\u540e\u4fee\u6539 ",(0,i.kt)("strong",{parentName:"p"},"\u5c5e\u6027\u540c\u6b65\u95f4\u9694")," \u7684\u503c\u5373\u53ef\u3002"),(0,i.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,i.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},77549:function(e,t,r){t.Z=r.p+"assets/images/tas-a-708e11c3002ff0308edec691c3815c31.png"},49127:function(e,t,r){t.Z=r.p+"assets/images/tas-a2-6fd2c204512be13ec886aa86a065a974.png"}}]); |