Commit Graph

22084 Commits

Author SHA1 Message Date
GengineJS 03a0c700ff Fixed an issue where the gameview profiler displayed errors when calling showStats (#18499) 2025-03-25 11:03:55 +08:00
James Chen 1eb69cca1e Add profiler background (#18507)
* Add profiler background

* Update background color.

* Format code

* Add padding for background

* Tweak profiler code size.

* Tweaks

* Add comments for hardcode +2
2025-03-25 11:03:17 +08:00
James Chen 942398a545 Merge pull request #18502 from cocos/v3.8.6
Merge v3.8.6 to v3.8.7
2025-03-24 15:58:27 +08:00
hyde zhou bdc96e8870 fix GameView profiler (#18500) 2025-03-24 15:10:48 +08:00
hyde zhou f011f698af fix profiler (#18498) 2025-03-24 11:37:22 +08:00
James Chen 83b77037d7 Fix initializing wrong JS array size for CharacterControllerContact & ContactPoint in physx binding on native platforms (#18497) 2025-03-24 10:26:37 +08:00
James Chen 6114a567ab Fix CanvasRenderingContext leaks which caused by circular dependencies on JSVM backend. (#18493) 2025-03-23 21:45:06 +08:00
bofeng-song 3011324d18 Fix the Spine crash issue caused by the release of renderEntity. (#18494) 2025-03-21 18:47:18 +08:00
qiuguohua fc64e7d65f Minigame platforms set isMobile to true when os equals unknown (#18490) 2025-03-21 13:42:15 +08:00
Knox b9679ea162 Revert "fix load plugins js file error in editor preview (#18483)" (#18488)
This reverts commit 51e0b1c172.
2025-03-21 11:33:31 +08:00
Knox 51e0b1c172 fix load plugins js file error in editor preview (#18483) 2025-03-21 10:28:50 +08:00
James Chen 4b5e4df474 Fix 'Object::createTypedArrayWithBuffer' for JSVM. (#18487) 2025-03-21 09:27:12 +08:00
James Chen 1917102ad6 Update typedoc-index.ts (#18485) 2025-03-20 13:35:52 +08:00
James Chen 89456552b6 Fix wrong definition of negative enum value in cc.d.ts (#18477) 2025-03-18 15:30:28 +08:00
James Chen 327617ded4 Fix memory leaks of old render pipeline on native platforms. (#18470)
ForwardPipeline::initialize may be invoked twice.

```cpp
using RenderFlowList = ccstd::vector<IntrusivePtr<RenderFlow>>;
RenderFlowList _flows;

bool RenderPipeline::initialize(const RenderPipelineInfo &info) {
    _flows = info.flows; // initialize will be invoked twice, this assignment will trigger old RenderFlow::~RenderFlow but without calling `destroy` to release memory.
    _tag = info.tag;
    return true;
}
```
2025-03-18 15:13:44 +08:00
qiuguohua cc47fce6bc HarmonyOS Next implements game.end interface (#18473) 2025-03-17 19:39:50 +08:00
GJ d0fd640f93 Fix renderDrawInfo is not cleared in 'onDisable' callback on native platforms (#18467) 2025-03-17 16:47:19 +08:00
James Chen 832f7ad6ee Simulator needs to be built with physics-2d-box2d-jsb feature (#18469) 2025-03-17 15:02:53 +08:00
bofeng-song 622d2c4763 Resolve compilation warnings for skeletonDataMgr in the Spine module (#18464) 2025-03-14 12:38:37 +08:00
James Chen e3cbe9ff63 Merge pull request #18465 from cocos/v3.8.6
Merge v3.8.6 branch to v3.8.7
2025-03-14 12:34:17 +08:00
James Chen 4a82a1681a CI builds Google Play platform C++ adapter code (#18463) 2025-03-14 09:57:30 +08:00
qiuguohua 623b49c066 Fix duplicate add achievement issue (#18462) 2025-03-14 09:42:11 +08:00
James Chen 929fe6c5c1 Don't use cmake cache since each PR will have a same cache which make the cache full (#18458) 2025-03-13 22:52:44 +08:00
qiuguohua b22e62dc52 Fix the issue where Google Play crashes randomly (#18460)
Co-authored-by: qiuguohua <guohua.qiu@cocos.com>
2025-03-13 22:51:59 +08:00
qiuguohua 84e22abab8 Fix the crash caused when getResult throws an exception. (#18459)
Co-authored-by: qiuguohua <guohua.qiu@cocos.com>
2025-03-13 22:09:40 +08:00
qiuguohua 949705bdcc Support Google Play Achievement (#18456) 2025-03-13 22:08:31 +08:00
James Chen 18f422029f Fix an error on android 6.0 webview (#18454)
Co-authored-by: wangzewei <sc.028.wang@gmail.com>
2025-03-13 19:10:54 +08:00
bofeng-song 5cbb7e14f8 Fix spine crash on native platforms after merging #18451 (#18457) 2025-03-13 19:10:01 +08:00
GengineJS f02e9438fc Fix the issue of inconsistent attachment sizes (#18455)
* Fix the issue of inconsistent attachment sizes

* Update
2025-03-13 17:50:46 +08:00
bofeng-song 7e753818d5 Only print warning if spine assets aren't compatible with spine runtime (#18452) 2025-03-13 12:55:15 +08:00
bofeng-song 7e3eae2018 Fix rendering anomalies on the native platform caused by texture object changes due to identical UUIDs in Spine. (#18451)
(cherry picked from commit 398c1f1a14d85bc08fd253a281ba4f886e6f0a2f)
2025-03-13 12:44:15 +08:00
媛媛 63c6d65377 fix default value for loadPluginInEditor (#18446) 2025-03-12 10:46:52 +08:00
James Chen 15f7112f62 Fix box2d jsb windows link errors (#18442) 2025-03-11 18:45:39 +08:00
James Chen 48308cdbef Fix touch listeners are not unsubscribed in MouseJoint. (#18438)
* MouseJoint Touch Issue

This code ensures that all touch event listeners (TOUCH_START, TOUCH_MOVE, TOUCH_END, and TOUCH_CANCEL) attached to the Canvas node are properly removed when the MouseJoint component is destroyed.

Purpose:
Prevents touch event listeners from remaining in memory after the MouseJoint is destroyed.
Avoids unexpected behavior caused by lingering event handlers that could still trigger interactions.
Improves memory management and performance by ensuring proper cleanup of event listeners.

* Override destroy an remove touch listner from joint

* Fix touch listeners are not unsubscribed in MouseJoint.

* Unsubscribe touch listeners in onDestroy

* Subscribe touch listeners in onEnable/onDisable.

* Optimize code size.

* Remove empty onDestroy.

* Should empty implement MouseJoint.

---------

Co-authored-by: gt3mb <68908903+gt3mb@users.noreply.github.com>
2025-03-11 18:44:36 +08:00
James Chen 032f61784b Merge pull request #18367 from smallmain/fix-camera-comment
Fix Camera component error comments
2025-03-11 17:29:10 +08:00
James Chen 1e70f468f7 Merge pull request #18434 from knoxHuang/fix-bug-2
Fixed an issue where the SpriteFrame editor was stuck
2025-03-11 12:30:29 +08:00
James Chen 63b29d5498 Merge pull request #18437 from dumganhar/386-ci-check-spine-uptodate
Optimize CI: check whether spine wasm/asm is up-to-date in external.
2025-03-11 12:12:56 +08:00
James Chen c9d9ffa23e Revert "Test"
This reverts commit 9c58158736.
2025-03-11 11:52:00 +08:00
James Chen 9c58158736 Test 2025-03-11 11:27:58 +08:00
James Chen 4a8a4582c5 Merge pull request #18425 from bofeng-song/v3.8.6
Support check compatible for spine's asset
2025-03-11 11:12:01 +08:00
James Chen 5aa5faeacd Fix output 2025-03-11 11:09:33 +08:00
James Chen 1374c7520a Update yml 2025-03-11 10:47:56 +08:00
bofeng 361a98ba0d refine 2025-03-11 10:37:57 +08:00
James Chen 3ce6a6603d Optimize CI: check whether spine wasm/asm is up-to-date in external. 2025-03-11 10:26:36 +08:00
even 24a2c2daa6 fix spine preview (#18415) 2025-03-11 00:03:18 +08:00
James Chen df14403ac5 Update external-config to v3.8.6-11 (#18435) 2025-03-10 23:56:34 +08:00
James Chen c863224408 Fix a mangling issue for AudioInfo<T> interface in audio-manager.ts (#18433) 2025-03-10 23:27:10 +08:00
Knox 990c2a1a3a refine code 2025-03-10 18:02:11 +08:00
Knox 292cc39ada refine code 2025-03-10 17:57:21 +08:00
Knox 7e20152a6a adjust the settings of the sprite frame, query automatic atlas and the code for the atlas 2025-03-10 17:30:01 +08:00