Commit Graph

259 Commits

Author SHA1 Message Date
qiuguohua c018f751c9 Reduce the amplitude of the frequency increase (#16716)
* Reduce the amplitude of the frequency increase

* Modify variable name

* Fix the problem of frame rate change on web platform

---------

Co-authored-by: qgh <>
2024-02-06 14:37:43 +08:00
QWER2509 5b984a6ad3 Fix the abnormal display issue after calling view.setOrientation. (#16678)
Co-authored-by: 清和晚风 <ryan2509@qq.com>
2024-01-22 10:02:25 +08:00
Isaac Gibbs b03136d300 V3.8.3 webp broswer support improvements (#16652)
* fix webp support on iOS for all applewebkit based browsers. (Safari, Chrome, Firefox)

* change logic, rather than checking for browser based on user agent use the deveice the game is being played on.

* enable webp for safari desktop browsers

* Update pal/system-info/web/system-info.ts

Co-authored-by: qiuguohua <qiuguohua111@126.com>

* Update pal/system-info/web/system-info.ts

Co-authored-by: qiuguohua <qiuguohua111@126.com>

---------

Co-authored-by: Isaac Gibbs <isaac.gibbs@penn-interactive.com>
Co-authored-by: ECiocca <598985+ECiocca@users.noreply.github.com>
Co-authored-by: qiuguohua <qiuguohua111@126.com>
2024-01-15 09:34:06 +08:00
James Chen 75c6f6d16d fixed #16248: .wasm / .asm.js files are both downloaded on web platform (#16679) 2024-01-11 15:30:05 +08:00
James Chen 118e50c8e8 Merge branch 'v3.8.2' of https://github.com/cocos/cocos-engine into v3.8.3
# Conflicts:
#	package-lock.json
#	package.json
2024-01-11 09:45:44 +08:00
James Chen e080cf17a7 Bytedance mini-game WASM support for both android and iOS platforms. (#16644) 2023-12-29 16:01:34 +08:00
James Chen 4ce3e6e64e fixed #16562: Wasm support for ByteDance minigame platform (#16628) 2023-12-20 09:54:54 +08:00
Isaac Gibbs 6872cf4792 fix webp support on iOS for all applewebkit based browsers. (Safari, Chrome, Firefox) (#16349)
Co-authored-by: Isaac Gibbs <isaac.gibbs@penn-interactive.com>
2023-12-19 11:33:09 +08:00
qiuguohua b71e59858a Fix the error when exiting audio on Xiaomi platform. (#16577)
Co-authored-by: qiuguohua <guohua.qiu@cocos.com>
2023-12-08 09:29:05 +08:00
bofeng-song 600b9270a9 fix infinite loop cause js error while playing more than maxAudioChannel audios (#16559)
* fix  infinite loop cause js error while playing more than maxAudioChannel audios
2023-12-05 15:37:49 +08:00
bofeng-song 17bc9b2f6c fix wrong adapter for alipay's safeArea (#16557) 2023-12-05 09:50:23 +08:00
bofeng-song 2831c61f0d Fix webaudio's bug: calling the 'checkEnded' interface after 'destroy' has been called can trigger a JavaScript error (#16393)
(cherry picked from commit a8e7f18bf7e4bc5decad9b78d1dc169c6068ce86)
2023-10-11 10:06:51 +08:00
oahc09 2928e74036 feat:support xr controller a/b/x/y/trigger/thumbstick touch event (#16293)
* feat:support xr controller a/b/x/y/trigger/thumbstick touch event

* fix:eslint problem

* refactor:add new enum/struct for touch event info
2023-09-26 14:32:23 +08:00
PP 0e53dde603 feat: support touch info query in input module (#16235)
Co-authored-by: finscn <finscn@gmail.com>
2023-09-13 10:44:20 +08:00
James Chen d2c3429f95 Refactor Openharmony platform code to support switching between napi (ark js runtime) and v8 (#16093)
* OH could use v8 now.

* napi addon works.

* Use Napi addon to refactor code.

* Fix compilation errors.

* tweak

* Refactor oh platform, remove some hacking for oh.

* Fix log in runScript.

* Fix the issues in napi mode.

* Revert.

* Remove an unused comment.

* Refactor log output in NapiHelper.cpp and OpenHarmonyPlatform.cpp

* Update oh template.

* Remove unused code.

* Remove unused debug log in jsb-gfx.js

* Update include

* Revert Screen::isDisplayStats.

* update OH template for v8 backend

* update

* Update CMakeLists.txt for OH

* Fix a compilation error in NapiHelper.cpp while switching to NAPI mode

* Keep the symbol of entry function.

* Add -Wl,--gc-sections and add -Wl,-s for release mode.

* Update external to 3.8.2-1

* Don't use `console.assert` directly.

* Remove oh specific methods ( getInnerWidth/Height, getWindowHandle ) in Device class.

---------

Co-authored-by: PP_Pro <chinese1236@qq.com>
2023-09-01 16:27:08 +08:00
minggo 1e3155bbe9 Merge pull request #16148 from cocos/v3.8.1
V3.8.1
2023-08-31 11:41:03 +08:00
bofeng-song 1a9b232221 fix audio can not reset to position 0 after call stop operation on web platform (#16122)
* fix audio can not reset to position 0 after call stop operation on web platform
2023-08-29 17:50:25 +08:00
pandamicro 0cb410d5da Merge pull request #16127 from cocos/v3.8.1
Merge V3.8.1
2023-08-29 17:01:37 +08:00
PP 9daf2c663c upgrade nodejs to 18.17.0 (#15899)
* upgrade nodejs to 18.17.0

fix compile-native-ts

fix type

fix eslint

fix node version on native-binding

test native ci

fix eslint

fix jest version

upgrade ts-jest

fix

reduce EXPECTED_CAPACITY

update ccbuidl

Revert "test native ci"

This reverts commit 795c8c68cf7ff7f2561db4414689ad3f6aa5c1f7.

# Conflicts:
#	scripts/native-pack-tool/package-lock.json

* detect node version

# Conflicts:
#	package.json

* use engine-strict option

* Update .nvmrc

* Update pal/input/web/accelerometer-input.ts

* fix conflict

* fix compile native ts

* download external in compile native ts

* fix
2023-08-28 15:52:24 +08:00
江战 88d585acc7 accept non array type (#16095) 2023-08-28 09:44:52 +08:00
dogeFu aff8320359 Fix : editor preview set fps no working (#16054) 2023-08-23 11:57:46 +08:00
江战 63668b2a10 remember connected gamepad count (#16023) 2023-08-21 10:48:32 +08:00
bofeng-song 012531ffeb Fix logic error of audio's currentTime (#15962) 2023-08-15 16:59:11 +08:00
bofeng-song 4ca3c88d8d Fix the issue on some platform, the audio cannot start playing at the exact position after calling stop and then seek (#15924)
* Fix the issue On the Huawei platform, the audio cannot start playing at the exact position after calling stop and then seek
2023-08-14 10:48:24 +08:00
bofeng-song 6b8009561e refine: erase unneed audio operation & fix potential bug (#15884)
* refine: erase unneeded audio operation & fix some potential bug
2023-08-10 17:06:53 +08:00
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