Commit Graph

204 Commits

Author SHA1 Message Date
qiuguohua 641a2fe2a4 Release the listener when destroyed. (#15036) 2023-05-14 23:08:34 +08:00
PP 4811334259 fix: wasm loading in editor native engine && fix gulp build (#15012)
* fix: wasm loading in editor native engine

* fix: gulp build workflow
2023-05-10 13:46:45 +08:00
PP 5f9209b3a9 fix: resolve external protocol when instantiate wasm in Editor (#15008) 2023-05-09 14:04:49 +08:00
PP 0b353b6e14 feat: support general WASM module in engine (#14974)
* support pal/wasm module

pal/wasm

* support sys.Feature.WASM and WASM_SUPPORT_MODE

# Conflicts:
#	pal/system-info/web/system-info.ts

# Conflicts:
#	pal/system-info/web/system-info.ts

# Conflicts:
#	pal/system-info/web/system-info.ts

* optimize bullet module


* update physx module

update

* revert tsconfig

* optimize WebGPU wasm import

* fix native wasm instantiate

* support wasm in EDITOR and PREVIEW

* optimize variable name

* update comment

* optimize code

* Update cocos/misc/webassembly-support.ts

* add physx wasm (#11) by yiwenxue

* add physx wasm

* update physx wasm instantiate.

* update, rename, etc.

* download external in CI

* fix physX wasm init

* move out external wasm type

* update external-config.json

* expand node max-old-space-size

* use console.debug

---------

Co-authored-by: Yiwen <15225434259xue@gmail.com>
2023-05-08 18:02:17 +08:00
bofeng-song ec60647f06 Support the adaptation of Alipay mini games (#14984) 2023-05-08 17:45:08 +08:00
pandamicro 71a11a7a14 Merge remote-tracking branch 'origin/v3.7.3' into develop
# Conflicts:
#	.github/workflows/run_test_cases.yml
#	cocos/rendering/planar-shadow-queue.ts
#	native/cocos/renderer/pipeline/PlanarShadowQueue.cpp
2023-05-08 11:55:56 +08:00
mmyduckx 16e0f7a8f1 fix high frameRate screen use 60 framerate and refine logic (#14894)
* fix high refresh rate screen use 60 framerate

* fix EDITOR preview cannot load scene

* refine

* remove useless code

* refine

* refine
2023-04-27 11:24:05 +08:00
minggo a22d16bbe6 Merge branch 'v3.7.3' into merge_v3.7.3 2023-04-24 11:26:58 +08:00
mmyduckx 74acc482ac fix webxr raf do not run bug (#14885) 2023-04-21 15:32:18 +08:00
fqamic 36b69d4fd7 engine support to webxr (#14861)
* feat: input support to webxr
1.new webxr gamepad event
2.new webxr handle pose event
3.support webxr hmd pose event

* feat: split the frameMove function to support xr readability

* feat:Add webxrFrameMove for webxr

* improve:xr stands for globalThis.globalXR

* improve(xr):format code

* fix: webxr gamepad update cache error

* fix: webxr gamepad update cache error

* fix: code naming error

* fix: update cache right gamepad data error

* improve: any is enough for any | undefined

* improve: modify interface PoseInfo and IGamepadCacheInfo

* improve: declare IGamepadCacheInfo

* fix: globalThis.__globalXR is undefined

---------

Co-authored-by: linyuanyi <1111>
2023-04-20 23:23:15 +08:00
mmyduckx 361ada4fa3 add setTimeRAF and replace setTimeout in pacer (#14704)
* add setTimeRAF and replace setTimeout in pacer
2023-04-10 10:08:45 +08:00
mmyduckx 33c0aa1bf3 use wechatprogram subpackge default and speedup launch time (#14683)
* use wechatprogram subpackge default and speedup launch time

* move gl.texSubImage2D adapater to PAL

* refine

* add getApp declare

* fix texture rendering in device

* move bundle require insert to load-module
2023-03-31 16:22:57 +08:00
江战 cdfd194c4c Add HPE Feature Detetion and JNI Method Refactoring (#14633) 2023-03-26 16:26:45 +08:00
minggo bcc581dfd7 Merge branch 'v3.7.3' into develop_merge_v3.7.3 2023-03-24 10:57:28 +08:00
PP e01ac3ee05 add tracking issue for TODO item (#14638)
* issue 14637

* issue 14640: animation module

* issue 14642: serialize deserialize hack

* issue 7519: pal/image

* issue 14643: dynamic inject

* mark as NOTE

* issue 14644: native only

* issue 7512: pal/fs
2023-03-23 16:42:46 +08:00
qiuguohua b615b2c672 Add openharmony platform definition (#14617)
* Add openharmony platform definition
2023-03-22 16:11:51 +08:00
PP 3cb698c8aa add more jsb interface info && fix some types (#14628)
* add jsb interface info

* mark TODO

workaround

* fix type

* remove some new ts-expect-error

* fix type in strict mode
2023-03-22 15:22:09 +08:00
qiuguohua e68506916c Develop branch adapts to openharmony (#14582) 2023-03-20 14:18:52 +08:00
PP fa51b804b5 remove and ban @ts-expect-error (#14572)
* remove ts-expect-error usage in engine

* deprecate Scheduler interface

* remove JavaScriptCore

* set some engineInternal public property as getter setter

* fix build-declaration

* fix releaseManager export name conflict

* update scriptEngineType

* fix and update some comment

* remove  w_mat, w_pos, w_rot, w_scale

* update renderer

* fix setRootBufferDirty not binding on native

* optimize floatToHashString

* mark NOTE
2023-03-20 13:48:26 +08:00
bofeng-song 24aa09670b support sepereate engine for taobao mini game (#14596)
* support sepereate engine for taobao mini game
2023-03-20 10:14:25 +08:00
mmyduckx 38c0ed4f95 add wechatprogram platform support (#14580)
* add wechatprogram platform support
2023-03-15 14:13:24 +08:00
santy-wang 0a81bf445e Merge branch 'develop' of github.com:cocos-creator/engine into v3.7.2 2023-03-13 16:51:47 +08:00
PP 713e29e168 fix: failed to execute plugin script in editor extend plugin on simulator (#14423)
* fix: failed to execute plugin script in editor extend plugin on simulator

* add error listener
2023-03-01 17:46:43 +08:00
PP 5ccf9e33ee fix: wrong screen size on ByteDance iPad device (#14165) 2023-02-27 14:25:45 +08:00
qiuguohua 25a3619413 Repair the problem that only one music is played when multiple music is played in the same node (#14319)
* Repair the problem that only one music is played when multiple music is played in the same node

* Modify comments

* Define callback functions to avoid removing all listeners when offrunning
2023-02-27 13:49:17 +08:00
bofeng-song 882887cb9f support taobao mini game (#14324) 2023-02-22 10:34:17 +08:00
James Chen 60efd41c26 Merge pull request #14330 from cocos/v3.7.2
Merges v3.7.2 to develop
2023-02-22 09:40:48 +08:00
qiuguohua 1a369a2f18 Fix the problem that pointerlock cannot move infinitely (#14235) 2023-02-19 17:21:12 +08:00
qiuguohua ee86fc40bd Native platform modifies exit process (#14141) 2023-02-15 17:11:28 +08:00
pandamicro 8eb177b53d Merge remote-tracking branch 'cocos-for-editor/v3.7.0' into develop
# Conflicts:
#	README.md
#	pal/audio/minigame/player-minigame.ts
2022-12-30 19:30:21 +08:00
pandamicro 87fd1dac1f Merge remote-tracking branch 'cocos-for-editor/v3.6.3' into develop
# Conflicts:
#	native/cocos/platform/android/java/libs/game-sdk.jar
#	native/external-config.json
#	pal/audio/minigame/player-minigame.ts
2022-12-30 19:28:39 +08:00
oahc09 9860c66c63 improve:xr remote preview process controller stick value (#13935)
* improve:xr remote preview process controller stick value
2022-12-29 18:07:18 +08:00
bofeng-song 19ffc349b6 Make audio be independent of core module (#13948) 2022-12-29 15:32:08 +08:00
bofeng-song 0d0d74e7bf fix wrong init at native scene (#13936) 2022-12-28 17:07:28 +08:00
fqamic 1f928364f4 fix some xr devices stretch when splash-screen logo and add handle device key (#13915)
* fix: some xr devices stretch when splash-screen logo

* feat: xr handle device support button menu and button start
2022-12-28 11:56:35 +08:00
pandamicro afd22296b4 MIT license update and to new year 2023 (#13927)
* Cpp MIT license update and to date
* TS MIT license update and to date
2022-12-28 11:25:12 +08:00
minggo 5c90582715 fix merge typo 2022-12-21 17:32:51 +08:00
minggo bfeca12a09 Merge branch 'v3.6.3' into merge-v3.6.3 2022-12-21 17:26:22 +08:00
PP d255936cdb optimize audio adaption on Taobao (#13835)
* fix: onPlay

* fix: onPause

* don't call stop

* remove HACK
2022-12-16 15:16:42 +08:00
江战 f6854cd16e native introduce jsb.window (#13816) 2022-12-16 13:50:59 +08:00
mmyduckx 2efe60a576 fix game.init assetDB-warning (#13809)
* fix game.init assetDB-warning
2022-12-14 14:31:14 +08:00
bofeng-song 4939c4d915 Fix audio bugs on the mini-game platform (#13772) (#13787) 2022-12-12 10:13:06 +08:00
bofeng-song 3c393ae111 Fix audio bugs on the mini-game platform (#13772)
(cherry picked from commit 8ee9ad317190134a51d67045d3d36927b16f9523)
2022-12-09 14:41:50 +08:00
PP c46edb704f fix: wechat Android doesn't support base64 webp (#13663)
* fix: wechat Android doesn't support base64 webp
2022-12-06 10:10:24 +08:00
minggo 8d8c283b59 Merge branch 'v3.6.3' into merge-v3.6.3 2022-11-28 13:37:25 +08:00
fqamic 2316dc77c1 improve(xr):Rename Handset to Handheld (#13558)
Co-authored-by: linyuanyi <1111>
2022-11-28 11:30:27 +08:00
fqamic d4055f7e32 new basic capabilities of supporting handset ar and webxr (#13420)
* feat: add the basic capability of handset ar native

* feat: add handset input device, for ar camera pose

* feat: native pack tool supports xr platform name

* feat: web gl context supports webxr

* feat: webxr has been converted to screen coordinates via camera

* fix: pr ts-expect-error undefined xr

* feat: support webxr, and remove ar redundant code

* fix:xr-spaces gradlew permission error

* feat: revert redundant ar engine feature

* fix: eslint check error

* feat: remove redundant code

* fix: eslint check warning

* adjust armodule process in forward stage, mtl texture and jsb

* fix: exlint warning, and add license

* adjust ar lib and interfaces

* change webxr check interface

* merge external arlib header and move it to engine

* improve: update native external version

* move ar background stage to xr/rendering and move its init to webxr device in xr plugin

* fix format error

* fix format error

* adjust jsb_ar_manual, ARModule, ARBackground

* adjust arbackground

Co-authored-by: Parryzhai <1306895355@qq.com>
Co-authored-by: MoHai <1192652394@qq.com>
2022-11-24 13:33:50 +08:00
minggo f78617a11d Merge pull request #13509 from yyycggg/v3.6.3
Merge branch 'v3.6.1-taobao' into v3.6.3
2022-11-24 09:46:59 +08:00
timlyeee 6063a4a4c1 [Hack] Jump across the safety policy (#13517) 2022-11-23 17:00:24 +08:00
minggo 5b88e5121d Merge branch 'v3.6.3' into merge_v3.6.3 2022-11-23 16:19:25 +08:00