Commit Graph

21937 Commits

Author SHA1 Message Date
Knox c4b4a0b908 Fixed an issue where setting a SpriteFrame on the Sprite Inspector panel caused a false freeze (#18279) 2025-02-06 15:52:14 +08:00
hyde zhou 4a88af755c Revert "add builtin pipeline passes (#17985)" (#18278)
This reverts commit aa3b9261e9.
2025-02-06 10:10:13 +08:00
James Chen 85c28aab1c Optimize code size: mark more properties as mangled. (#18265) 2025-02-05 15:55:30 +08:00
James Chen bc0a2b4921 Optimize code size for text-utils.ts (#18262)
* Optimize code size for text-utils.ts

* Fix text-utils.ts
2025-02-05 15:53:52 +08:00
Cocos Robot 6d189bdd2d [ci skip][AUTO]: Automated code generating update: db2c5e06797643814f14c854333dabe3e1e8789a (#18260) (#18277)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2025-02-05 15:43:16 +08:00
James Chen c08dbf5c68 Optimize code size again. (#18260)
* Optimize code size again.
2025-02-05 15:35:40 +08:00
James Chen a3a6cc692c Optimize code size for text-processing.ts (#18263) 2025-02-05 15:26:15 +08:00
Vida Xie 8d1920dadf refactor: improve type safety for isValid (#18264) 2025-02-05 15:20:52 +08:00
James Chen 27b184e3c4 Optimize code size for mesh.ts (#18268) 2025-02-05 15:19:25 +08:00
James Chen b91f6a7d06 Optimize code size for webgl-commands.ts & webgl2-commands.ts (#18266)
* Optimize code size for webgl-commands.ts & webgl2-commands.ts
2025-02-05 15:08:55 +08:00
Cocos Robot 06fcad697a [ci skip][AUTO]: Automated code generating update: f44fae2d154052cd63b9f9b242b695b33b799895 (#18255) (#18275)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2025-02-05 14:52:11 +08:00
James Chen 18d80116b5 Fix some type issues in tilemap module (#18255) 2025-02-05 14:41:34 +08:00
James Chen f80f8c819c Optimize code size for scene-globals.ts (#18269)
* Optimize code size for scene-globals.ts
2025-02-05 14:33:36 +08:00
James Chen 6409fdcbea Optimize code size for sprite/sliced.ts, mesh-buffer.ts, scene/camera.ts (#18273) 2025-02-05 14:30:00 +08:00
James Chen 43053879e9 Update ccbuild to 2.3.10 (#18270) 2025-02-05 14:27:22 +08:00
James Chen de0a107e69 Optimize code size by adding an internal API UIRenderer._markForUpdateRenderData (#18253)
* Optimize code size by adding an internal API UIRenderer._markForUpdateRenderData

* fix

* Add comments for why adding the internal method _markForUpdateRenderData

* Update graphics.ts

* Update comments in ui-mesh-renderer.ts too.
2025-02-05 14:16:17 +08:00
James Chen ee233358cd Optimize code size for frustum.ts & intersect.ts files. (#18256)
* Optimize code size for frustum.ts &intersect.ts files.

* Update

* new Vec3() -> v3(), Math.yyy -> mathYYY.

* More optimizations.
2025-02-05 14:10:32 +08:00
James Chen 51edbb2815 Fix RenderPass.computeHash (#18271) 2025-02-05 13:56:39 +08:00
James Chen aca53d2817 Fix deprecated String.substr, use String.substring instead. (#18272) 2025-02-05 13:47:05 +08:00
minggo 4c92a439ee Oh egl crash (#18252)
* Fix HarmonyOS Next platform crash

---------

Co-authored-by: qiuguohua <qiuguohua111@126.com>
2025-01-25 11:55:19 +08:00
qiuguohua fd7270c886 Synchronize HarmonyOS Next platform from cocos creator 2.4.14 (#18247)
* Synchronize the HarmonyOS Next platform update for 2.4.14
2025-01-24 13:48:35 +08:00
Knox 2f9e8d2309 adjusting the ui of the spine preview (#18248) 2025-01-24 11:49:38 +08:00
James Chen 8de922ea19 Optimize code size for draw-batch.ts and batcher-2d.ts, remove needless setter/getter. (#18238)
* Optimize code size for draw-batch.ts and batcher-2d.ts, remove needless setter/getter.

* Add comment for changing getter to function
2025-01-24 09:42:20 +08:00
James Chen 01040a3494 Optimize code size for VideoPlayer and WebView. (#18231) 2025-01-23 10:49:57 +08:00
Cocos Robot 33b4c658ab [ci skip][AUTO]: Automated code generating update: adc9795971a9439415ac8d0bb5f1d4d5764c3582 (#18230) (#18244)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2025-01-23 10:49:24 +08:00
James Chen 75a70a56f7 Fix compiler errors in particle-2d module and optimize TIFFReader usage. (#18230)
* Fix compiler errors in particle-2d module

* Better wrapParseInt/wrapParseFloat implementation

* Update

* Add type info for png-reader & tiff-reader and mangle them since they're internal modules.

* Update type in png-reader.ts

* tiffReader should be a singleton to avoid allocate TiffReader per ParticleSystem2D, and reset the tiff reader after decoding to avoid memory cached in it.
2025-01-23 10:42:32 +08:00
James Chen ad210c1ee8 Optimize code size for minigame adapter. (#18237) 2025-01-23 10:41:19 +08:00
James Chen 974776d13a Optimize code size for AudioManager. (#18242) 2025-01-23 09:24:15 +08:00
James Chen 4b34ce374b Optimize code size for scheduler.ts. (#18236) 2025-01-23 09:23:51 +08:00
James Chen 1f6748026f Optimize code size for 2d module. (#18239) 2025-01-23 09:21:58 +08:00
James Chen 92d0ee13ba Optimize code size for WebView & VideoPlayer and fix type issues. (#18240)
* Optimize code size for WebView & VideoPlayer and fix type issues.

* Remove mangle tag for VideoPlayerImpl & WebViewImpl since they're used in js file in platforms directory.

* Fix errors in VideoPlayer.js and jsb-webview.js
2025-01-23 09:20:36 +08:00
James Chen 915da6f915 Fix some type issues. (#18241) 2025-01-23 09:16:17 +08:00
James Chen aa841bd7f7 [v3.8.6] [2D Skew comes back] Add UISkew component support. (#18212) 2025-01-22 16:38:56 +08:00
sunxunle 1524ae1db2 chore: remove redundant words (#18215)
Signed-off-by: sunxunle <sunxunle@ampere.tech>
2025-01-22 15:27:32 +08:00
James Chen 9b4dfdb0fb Node.x/y/z are back. (#18228)
It will be easier for just set one axis value. For example, while using Tween animation, we want to make a sprite jump up and down forever and move x to 100, it will be hard to do that if Node.x/y/z are absent.
2025-01-22 09:54:31 +08:00
James Chen 36d3d58268 [v3.8.6] Fix 'as any' in ui-component.ts which will lost type for UIComponent (#18218) 2025-01-21 10:35:08 +08:00
James Chen 5428475dd8 [v3.8.6] Optimize code for optional chaining (#18219) 2025-01-21 10:17:41 +08:00
minggo f5f9a5a4a2 add a function to enable texel offset for tilemap (#18209)
* add a function to enable texel offset for tilemap
2025-01-21 09:34:12 +08:00
James Chen f965829ee2 [v3.8.6] Optimize code size in trail.ts (#18217) 2025-01-21 09:33:08 +08:00
James Chen d8eb4f6b53 [v3.8.6] Optimize code size for pointer-event-dispatcher.ts. (#18220)
addPointerEventProcessor, removePointerEventProcessor, dispatchEventMouse, dispatchEventTouch don't need to be public.
2025-01-21 09:26:30 +08:00
James Chen e652d6ed95 [v3.8.6] Fix a mangleProperties issue which is caused by using as any in trail.ts. (#18216) 2025-01-20 17:58:21 +08:00
James Chen 1ff0f41b0c [v3.8.6] Mark some properties as @dontmangle. (#18160) 2025-01-20 16:33:40 +08:00
James Chen 1d870a7f2c [v3.8.6] Optimize code size again. (#18197)
* [v3.8.6] Optimize code size again.

* More mangled properties.

* Mark SpriteFrame._calculateUV as engine internal and mangle.
2025-01-17 14:09:05 +08:00
James Chen 249d77dafc [v3.8.6] Optimize code size for webgl-device.ts (#18207)
* [v3.8.6] Optimize code size for webgl-device.ts
2025-01-17 14:07:28 +08:00
James Chen 835119f771 [v3.8.6] Mangle more static properties by configuration. (#18205) 2025-01-17 14:06:02 +08:00
James Chen 5b875ee921 [v3.8.6] Optimize code size for webgl2-device.ts (#18206)
* [v3.8.6] Optimize code size for webgl2-device.ts
2025-01-17 14:02:13 +08:00
James Chen b0b7dfb953 [v3.8.6] Inline enums for CCObjectFlags. (#18190) 2025-01-17 11:44:07 +08:00
hyde zhou 68936a5687 fix descriptor set init bug (#18204) 2025-01-16 19:32:38 +08:00
James Chen 11bc19fd1c [v3.8.6] Support to mangle static private properties (#18203) 2025-01-16 17:28:12 +08:00
bofeng-song 26beaa0a39 Fix crashes caused by compatibility issues on Android 6.0 and below. (#18201)
* Fix crashes caused by compatibility issues on Android 6.0 and below.
2025-01-16 17:22:45 +08:00