-
Notifications
You must be signed in to change notification settings - Fork 2.1k
feat: support general WASM module in engine #14974
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
pal/wasm
# Conflicts: # pal/system-info/web/system-info.ts # Conflicts: # pal/system-info/web/system-info.ts # Conflicts: # pal/system-info/web/system-info.ts
update
pal/system-info/web/system-info.ts
Outdated
| // refer https://stackoverflow.com/questions/47879864/how-can-i-check-if-a-browser-supports-webassembly | ||
| const supportWasm = (() => { | ||
| // iOS 15.4 has some wasm memory issue, can not use wasm for bullet | ||
| const isiOS15_4 = (this.os === OS.IOS || this.os === OS.OSX) && /(OS 15_4)|(Version\/15.4)/.test(window.navigator.userAgent); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But why check OSX too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's a history bug fix, it seems that on safari, there is some memory issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But the variable name is isiOS15_4 .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, it means on safari iOS15.4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated here 0e1101f
pal/system-info/web/system-info.ts
Outdated
| // iOS 15.4 has some wasm memory issue, can not use wasm for bullet | ||
| const isiOS15_4 = (this.os === OS.IOS || this.os === OS.OSX) && /(OS 15_4)|(Version\/15.4)/.test(window.navigator.userAgent); | ||
| if (isiOS15_4) { | ||
| // safari iOS 15.4 has some wasm memory issue, can not use wasm for bullet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think should modify the comment too? As not only has issue on iOS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
udpated de35e29
* add physx wasm * update physx wasm instantiate. * update, rename, etc.
|
@PPpro ❗ There was an error during the execution of the tasks. Please check the logs for more details. |
Re: https://github.com/cocos/3d-tasks/issues/6330
Changelog
pal/wasmmodule exportingisntantiateWASMinterfacesys.hasFeature(sys.Feature.WASM)queryWASM_SUPPORT_MODEconstant ininternal:constantsmodulebulletphysxandwebgpuRelative PR
Tested Platform
Tested Module
WASM docs
https://github.com/cocos/3d-tasks/blob/master/design-docs/scripting/engine-wasm-module.md
Continuous Integration
This pull request:
Compatibility Check
This pull request: