Commit Graph

234 Commits

Author SHA1 Message Date
bofeng-song 22388ba701 The Taobao platform has improved the implementation of innerAudioContext. (#15839) 2023-08-01 14:24:27 +08:00
bofeng-song 4a2f290516 Fix audio can not be paused & resume on mini game platform (#15811)
* Fix audio can not be paused & resume on mini game platform
2023-08-01 11:34:40 +08:00
bofeng-song d73096a1c5 Fix the problem of noise when playing web audio for more than 5 minutes. (#15807)
* Fix the problem of noise when playing web audio for more than 5 minutes.
2023-07-31 14:13:03 +08:00
PP 75add41002 fix: asm.js subpackage without spine module (#15822)
# Conflicts:
#	pal/wasm/wasm-minigame.ts
2023-07-31 11:33:59 +08:00
Leslie Leigh (李的序) 3a470a6dff Add utilities to check integrity of pal implementations (#15694)
* Add utilities to check integrity of pal implementation

* Fix screen adapter

* Fix game pad input

* Apply suggestions from code review

Co-authored-by: PP <chinese1236@qq.com>

* Add license

---------

Co-authored-by: PP <chinese1236@qq.com>
2023-07-13 14:18:53 +08:00
minggo 802a1f0959 Merge branch 'v3.8.0' into v3.8.1-merge-v3.8.0
Conflicts:
	cocos/core/utils/x-deprecated.ts
	cocos/physics/bullet/instantiated.ts
	cocos/physics/framework/components/character-controllers/character-controller.ts
	cocos/render-scene/scene/shadows.ts
	cocos/rendering/render-shadow-map-batched-queue.ts
	cocos/spine/lib/instantiated.ts
	cocos/spine/lib/spine-define.ts
	cocos/spine/skeleton.ts
	native/cocos/editor-support/spine-wasm/AtlasAttachmentLoaderExtension.cpp
	native/cocos/editor-support/spine-wasm/spine-skeleton-instance.cpp
	native/cocos/editor-support/spine-wasm/spine-skeleton-instance.h
	native/cocos/editor-support/spine-wasm/spine-type-export.cpp
	native/cocos/editor-support/spine-wasm/spine-wasm.cpp
	native/external-config.json
2023-07-12 16:02:10 +08:00
bofeng-song 777c855ef2 Fix the problem that the sound cannot be stopped after calling minigamePlayer.stop on the Alipay platform. (#15633)
* fix audio can not be stopped while call MiniGamePlayer's stop
2023-07-06 15:42:13 +08:00
PP 649e81a7b2 optimize: ensure wasm module ready before importing (#15631)
* optimize: ensure wasm module ready before importing

* Update @types/pal/minigame.d.ts

* Update pal/wasm/wasm-minigame.ts

* use reject instead of warnning

* optimize: add promiseToLoadWasmModule

* add shouldUseWasmModule method to simplify code

* fix: subpackage loading on taobao minigame platform

* Update pal/wasm/wasm-minigame.ts
2023-07-06 15:34:31 +08:00
bofeng-song 1d85b94925 All games, mini-programs, and runtime platforms with onWindowResize need to listen to it. (#15617)
* All games, mini-programs, and runtime platforms with onWindowResize need to listen to it.
2023-07-05 11:20:24 +08:00
minggo 7ef995b655 Merge branch 'v3.8.0' into v3.8.1-merge-v3.8.0
Conflicts:
	cocos/3d/lights/spot-light-component.ts
	cocos/animation/event/event-emitter.ts
	cocos/physics-2d/box2d/physics-contact.ts
	cocos/physics-2d/box2d/physics-world.ts
	cocos/physics-2d/box2d/platform/physics-contact-listener.ts
	cocos/physics-2d/builtin/builtin-world.ts
	cocos/physics/framework/components/constraints/configurable-constraint.ts
	cocos/spine/assembler/simple.ts
	cocos/spine/skeleton.ts
	native/cocos/editor-support/spine-wasm/spine-model.cpp
	native/cocos/editor-support/spine-wasm/spine-model.h
	native/cocos/editor-support/spine-wasm/spine-skeleton-instance.cpp
	native/cocos/editor-support/spine-wasm/spine-skeleton-instance.h
	native/cocos/editor-support/spine-wasm/spine-type-export.cpp
	native/external-config.json
2023-07-03 15:25:13 +08:00
PP 85acac8ae6 fix: wrong asm.js mem url on minigame platforms (#15559)
* fix: wrong asm.js mem url on Xiaomi platform

* revert binaryUrl fix on OPPO platform
2023-06-29 09:41:50 +08:00
minggo e7c5b34e18 Merge branch 'v3.8.0' into v3.8.1-merge-v3.8.0
Conflicts:
	cocos/2d/assembler/label/text-processing.ts
	cocos/physics/bullet/instantiated.ts
	cocos/profiler/profiler.ts
	cocos/rendering/custom/executor.ts
	cocos/rendering/custom/index.ts
	cocos/rendering/custom/web-pipeline.ts
	cocos/rendering/pipeline-scene-data.ts
	cocos/root.ts
	cocos/spine/assembler/simple.ts
	cocos/spine/lib/instantiated.ts
	cocos/spine/lib/spine-define.ts
	cocos/spine/skeleton.ts
2023-06-27 13:35:35 +08:00
bofeng-song 02716c4a84 Fix the memory leak caused by excessive simultaneous playback of sound effects on the mini game platform (#15541)
* Fix the memory leak caused by excessive simultaneous playback of sound effects on the mini game platform.

(cherry picked from commit 4616c2482f00ecedf01a714e25449a8682793e3e)

(cherry picked from commit 2ee2a1609bb3927f1cb71a0d70cf0273ab0e37da)
2023-06-27 10:41:12 +08:00
PP 1090830b1e fix: loading spine module on OPPO using separate engine (#15536)
* fix: loading spine module on OPPO using separate engine
2023-06-26 16:58:45 +08:00
bofeng-song bd28997503 fix fsUtils is not defined at taobao platform (#15522)
* fix fsUtils is not defined at taobao platform
2023-06-26 10:11:12 +08:00
minggo 06f136f5c4 Merge branch 'v3.8.0' into merge-3.8.0 2023-06-19 15:26:26 +08:00
mmyduckx d351ae7948 fix pacer-unit-test (#15461) 2023-06-19 09:44:59 +08:00
PP 870e356408 support fetchBuffer in pal/wasm module (#15454) 2023-06-18 16:38:44 +08:00
qiuguohua 923f8ec83c Repair the problem of invalid game.end on web platform and minigame platform. (#15434)
* Repair the problem of invalid game.end on web platform and minigame platform
2023-06-15 16:27:52 +08:00
PP 509d73b27d merge branch v3.8.0-aot (#15421)
* PR1: add explicit function return type (#15311)

* PR4: add explicit function return type (#15314)

* [ci skip][AUTO]: Automated code generating update: 8843bfe54cd3f8e6f84432948716c8d130ecb233  (#15314) (#15357)

Co-authored-by: cocos-robot <cocos-robot@cocos.com>

* add function return type

* fix version checking

* fix return type

---------

Co-authored-by: Cocos Robot <48829427+cocos-robot@users.noreply.github.com>
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2023-06-13 18:08:45 +08:00
江战 8c41446e96 Add Android GPG keyboard & Mouse support (#15385)
* Add Android GPG keyboard & mouse support
2023-06-08 21:42:45 +08:00
mmyduckx 42816774d3 fix setFrameRate unit-test (#15369) 2023-06-08 11:31:57 +08:00
dogeFu 09e000266d feature : add EDITOR_NOT_IN_PREVIEW marco (#15354)
* feature : add marco for editor preview and refactor code with new marco

* refactor: replace GAME_VIEW with EDITOR_PREVIEW

* Revert "refactor: replace GAME_VIEW with EDITOR_PREVIEW"

This reverts commit e28953e9e7acbb49dc5bdc650b2ff65510d4b084.

* update cc config json

* refactor code

* remove uselese parentheses

* set ccglobal to be false

* skip global variable test case
2023-06-07 17:52:51 +08:00
mmyduckx d9f385e95c support Pacer to set specific frameRate without frame lost (#15350) 2023-06-07 17:38:09 +08:00
qiuguohua 1efd3d8599 Fixed safe areas requires dpr (#15275) 2023-06-05 11:08:24 +08:00
PP 6218525321 Revert "Windows devices input fix (#14073)" (#15229)
This reverts commit 64a9c8721d.
2023-05-30 17:14:11 +08:00
PP 35dfce2a18 fix: use onWidnowResize on RUNTIME_BASED (#15201) 2023-05-26 11:53:46 +08:00
Lorenzo Dezi 64a9c8721d Windows devices input fix (#14073)
* Windows devices  input fix

Pointer events are used

* Pull request fixes

Callback signatures and unnecessary condition statement

---------

Co-authored-by: Lorenzo Dezi <dezio95.ld@gmail.com>
Co-authored-by: pandamicro <lphuabin@gmail.com>
2023-05-25 09:40:11 +08:00
PP 9bb5b351be fix: loading empty wasm on native platforms (#15150) 2023-05-23 16:46:44 +08:00
bofeng-song 08063379f3 support splash for taobao & refine code (#15136)
* support splash for taobao & refine code
2023-05-23 09:41:16 +08:00
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