Commit Graph

297 Commits

Author SHA1 Message Date
James Chen aca53d2817 Fix deprecated String.substr, use String.substring instead. (#18272) 2025-02-05 13:47:05 +08:00
James Chen ad210c1ee8 Optimize code size for minigame adapter. (#18237) 2025-01-23 10:41:19 +08:00
James Chen 37e1dcc4bd [v3.8.6] Optimize code size: audio (#18198)
* [v3.8.6] Optimize code size: mangle AudioBufferManager since it's not exported.
2025-01-16 10:15:48 +08:00
James Chen e5aac8f591 [v3.8.6] Optimize code size for input.ts, tiled-layer.ts, minigame pal (#18159)
* [v3.8.6] Optimize code size for input.ts and tiled-layer.ts
2025-01-13 11:04:50 +08:00
James Chen 86b314f3c1 fixed #3d-tasks/18524: Error: [Assets] _updateAdaptResult Invalid size (#18164) 2025-01-13 09:45:31 +08:00
yoki0805 3f390693cb Fix the audio event remove (#17908)
When the audio play done, the event key should be cleanup.
2025-01-07 09:43:22 +08:00
James Chen f0f2b7e411 Merge branch 'v3.8.5' into v3.8.6
# Conflicts:
#	cocos/gfx/webgl/webgl-swapchain.ts
2024-11-25 15:55:20 +08:00
James Chen 42384e20f1 385 revert $ (#17912)
* Remove dollar suffix for private property definition.

* (\._[a-z][a-zA-Z0-9]{3,})\$ to \1

* (protected _[a-z][a-zA-Z0-9]{3,})\$ and (public _[a-z][a-zA-Z0-9]{3,})\$ to \1

* ( _[a-z][a-zA-Z0-9]{3,})\$([^0-9]) to \1\2

* Remove $ suffix manually for gfx-webgl backend.

* (public [a-z][a-zA-Z0-9]{3,})\$ to \1

* (\.[a-z][a-zA-Z0-9]{3,})\$ to \1


* Remove mangle hack.
2024-11-25 13:47:56 +08:00
James Chen 667005fe44 [v3.8.6] Continue to remove unused platforms support. (#17902)
* Continue to remove unused platforms support.
2024-11-22 10:30:47 +08:00
James Chen 888480783a fixed #17866: [bug] EventTouch.getUIDelta return wrong delta values on native platforms (#17895) 2024-11-21 15:36:01 +08:00
James Chen f1b02ad473 [v3.8.5] Mangle private properties in touch-manager.ts (#17868)
* [v3.8.5] Mangle private properties in touch-manager.ts

* Fix eslint errors in mouse-input.ts
2024-11-18 09:34:38 +08:00
James Chen 21e6d0c47e fixed #17833: [v3.8.5] Add an ability to load wasm/asmjs module manually (#17844) 2024-11-13 17:17:38 +08:00
bofeng-song 1e26d3e855 Fix the issue where the return value of getSafeArea in WeChat may be undefined. (#17831) 2024-11-08 17:41:33 +08:00
bofeng-song 537dba8e1c Fix the issue of incorrect interface adaptation on the web platform in fullscreen mode after rotating the screen. (#17780) 2024-10-28 16:21:03 +08:00
bofeng-song b34203f33c Fix adapter's error on taobao platform (#17734) 2024-10-17 16:31:28 +08:00
tangkai 9f1547cec6 fix safari can not resume the webaudio (#17640) 2024-10-15 17:02:51 +08:00
James Chen f4ccf3a8bb [v3.8.5] Support inline enum and mangle private variables to reduce engine size. (#17703) 2024-10-15 10:17:16 +08:00
lanbinqiang 7bbc5faf60 Added MIGU channel identifiers (#17687)
Co-authored-by: lbq <563294062@qq.com>
2024-10-10 09:34:29 +08:00
Ikko Eltociear Ashimine 0d8aedb3de chore: update wasm-web.ts (#17524)
minor fix
2024-08-12 17:59:48 +08:00
James Chen 32727868b0 Reduce the generated javascript code size (#17491) 2024-08-06 18:14:44 +08:00
bofeng-song 7995f42a16 Due to ByteDance platform's web audio mode, bufferSource playback can cause memory leaks; therefore, the default audio playback has been changed to use InnerAudioContext. (#17454)
* Due to ByteDance platform's web audio mode, bufferSource playback can cause memory leaks; therefore, the default audio playback has been changed to use InnerAudioContext.
2024-07-30 14:16:45 +08:00
qiuguohua 9a7414ba1c fix sys.os/sys.isMobile on minigame platform (#17396)
Co-authored-by: WenhaiLin <wenhai.lin@foxmail.com>
2024-07-19 16:03:32 +08:00
yanjifa c6794f9149 optimize safearea (#17359) 2024-07-19 15:23:25 +08:00
bofeng-song 38a688e73e Fix the issue of the addEventListener method being undefined during screen rotation on iOS browsers. (#17299)
* Fix the issue of the addEventListener method being undefined during screen rotation on iOS browsers.
2024-07-04 14:44:20 +08:00
bofeng-song d431b27b4d Taobao platform supports ASTC compressed textures. (#17275)
* Taobao platform supports ASTC compressed textures.

* fix runtime error on Taobao platform
2024-07-02 16:58:21 +08:00
qiuguohua 1c844432d6 Fix touchend event exception when ENABLE_MULTI_TOUCH is false (#17183)
Co-authored-by: qiuguohua <guohua.qiu@cocos.com>
2024-06-20 09:49:15 +08:00
bofeng-song 958de7dc68 Fix wrong screen size on TAOBAO_MINIGAME iPad device (#17107)
* Fix wrong screen size on TAOBAO_MINIGAME iPad device
2024-06-13 14:40:57 +08:00
GengineJS cf85e35f13 support webgpu (#17096) 2024-06-12 09:24:10 +08:00
James Chen ead9ae05c2 Fix lots of type issues in Tween system (#16948) 2024-05-16 14:15:38 +08:00
minggo 3e3a3b40e9 Merge pull request #16991 from cocos/v3.8.3
sync V3.8.3 to v3.8.5
2024-05-16 10:48:31 +08:00
bofeng-song c9b0361821 fix innerAudioContext.onCanPlay may not exist at some devices (#16958)
* fix innerAudioContext.onCanPlay may not exist at some devices
2024-05-09 11:11:09 +08:00
bofeng-song 15bffa2286 Fix the inconsistency issue between iOS and Android regarding the window.orientation values, which may cause incorrect orientation to be returned (#16936)
* Fix the inconsistency issue between iOS and Android regarding the window.orientation values, which may cause incorrect orientation to be returned
2024-04-28 13:44:06 +08:00
bofeng-song 724f2f6d22 Fixing the issue where the web browser on iOS devices doesn't behave properly when the screen rotates. (#16934)
* Fixing the issue where the web browser on iOS devices doesn't behave properly when the screen rotates.
2024-04-26 16:01:12 +08:00
minggo 24f3f6583b support mouse leave/enter envents (#16886) 2024-04-10 15:14:48 +08:00
bofeng-song bee8aa24c4 Fix the issue where setting the device orientation to landscape on the web results in displaying the portrait screen when rotating the device. (#16879)
* Fix the issue where setting the device orientation to landscape on the web results in displaying the portrait screen when rotating the device.
2024-04-08 15:37:54 +08:00
bofeng-song 78e1af7959 Fix the issue of screen.orientation being undefined on Safari. (#16878)
* Fix the issue of screen.orientation being undefined on Safari.
2024-04-08 13:49:49 +08:00
bofeng-song 5da2f9b63a fix orientation-change can not work normally (#16774)
* fix orientation-change can not work normally
2024-03-22 09:27:54 +08:00
James Chen d25984134f Fixed no error callback if loading an remote audio resource that doesn't exist on the server. (#16773) 2024-03-07 09:31:19 +08:00
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