Commit Graph

21550 Commits

Author SHA1 Message Date
hyde zhou 0e4bc286d0 simplified object getter (#17481) 2024-08-02 14:56:54 +08:00
hyde zhou 53da682a80 Reduce graph code (#17480) 2024-08-02 13:56:58 +08:00
finscn 02d0aa2291 Fix the bug that some objects are not released when destroying SkeletonData (#17432) 2024-08-02 09:49:43 +08:00
finscn ec8270eb7f reduce the invocation of get skeletonJsonStr (#17435) 2024-08-02 09:46:31 +08:00
James Chen 77d88d54b6 [optimization] free string memory after JSON is parsed. (#17479) 2024-08-01 18:30:08 +08:00
bofeng-song 434e06e88b Update external version (#17475) 2024-08-01 18:29:04 +08:00
hyde zhou 5003dc9a04 reduce graph code (#17474) 2024-08-01 16:56:46 +08:00
James Chen 046545cd72 Fix lambda capture type issues for VS 2017 and use right operator for createJSONObject(std::u16string &&jsonStr) (#17472) 2024-08-01 16:22:20 +08:00
yoki0805 b24bfc41fa Reduce the frequency of looking up matrix elements within the loop, and reduce the division operations for color setup (#17473)
* Optimize 2d assembler

Reduce the frequency of looking up matrix elements within the loop.

* Reduce division operations for color

Reduce division operations for color.
2024-08-01 14:38:48 +08:00
yoki0805 e0207b4aa9 Optimize ui components: to avoid creating temp objects. (#17456)
* Optimize ui components: to avoid creating temp objects.

To avoid creating temp objects.

* Update progress-bar.ts

Fix the finalPosition variable means.

* Update progress-bar.ts

Resolve ESLint warning.

* Update widget-manager.ts

Add some comment.

* Update widget-manager.ts

modify the comment.
2024-08-01 11:04:49 +08:00
James Chen cb0e57c256 Add LICENSE_simdutf.txt (#17469) 2024-07-31 22:47:35 +08:00
hyde zhou f2f024bcc9 revert SHA-1: 67233882cf (#17467)
* V3.8.4 reduce code (#17428)

Has bug in editor.
2024-07-31 22:25:49 +08:00
James Chen ab6b7bb70c fixed #17012: Loading assets synchronously causes rendering to freeze. (#17464) 2024-07-31 22:01:24 +08:00
hyde zhou 24b76fb528 use const enum, simplify object pool (#17465)
* serialization simplified

* use const enum

* pool updated
2024-07-31 19:10:04 +08:00
bofeng-song d6eeed0b44 Update external version (#17466) 2024-07-31 19:06:11 +08:00
hyde zhou e0a82d78d8 serialization simplified (#17463) 2024-07-31 18:13:16 +08:00
yoki0805 50baffe94e Optimize particle-simulator-2d (#17420)
Optimize particle color setup
2024-07-31 18:01:30 +08:00
hyde zhou 0d975f09dd separate names, only used in editor (#17462)
* separate names, only used in editor

* remove reset default parameters
2024-07-31 15:31:15 +08:00
hyde zhou a7f3d733a1 RenderPipeline moved to legacy-pipeline (#17461) 2024-07-31 11:41:36 +08:00
hyde zhou ae96107198 separate engine and editor code (#17460) 2024-07-31 09:47:03 +08:00
hyde zhou 057c355bc7 remove graph tryGet (#17459)
* remove tryGet

* simplify get
2024-07-30 17:16:08 +08:00
hyde zhou 1e7aafe225 reduce graph code (#17457)
* disable remove vertex, edge

* remove property map

* remove unnecessary comment
2024-07-30 16:11:48 +08:00
finscn c9cc292ae0 去掉 debug.ts 文件中的 debugger (#17417)
去掉 debug.ts 文件中的 `debugger`, 改为 console.error()
2024-07-30 15:44:51 +08:00
hyde zhou 7ba28799a0 remove old web layout (#17458) 2024-07-30 15:10:52 +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
hyde zhou dda764eb21 add post process culling (#17452)
* add post process culling

* disable post-process by default

* remove post process builder

* cleanup

* backward compatible
2024-07-30 13:42:05 +08:00
hyde zhou 3f40ef68ba remove builtin-pipeline.rpp (#17453) 2024-07-30 13:41:18 +08:00
hyde zhou 1e13d9b5c9 remove unused code (#17449) 2024-07-30 11:43:32 +08:00
hyde zhou 0d0a5b0e9c remove Forward Deferred pipelines (#17448) 2024-07-30 11:02:16 +08:00
Cocos Robot b0217a6862 [ci skip][AUTO]: Automated code generating update: 3112dc47342a70a3314bfa6a2ef0d1143b9989d0 (#17442) (#17443)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2024-07-29 18:06:12 +08:00
hyde zhou 979d7dd841 add legacy-pipeline (#17442) 2024-07-29 17:59:28 +08:00
hyde zhou 8106f8677d add legacy-pipeline culling (#17260) 2024-07-29 16:45:31 +08:00
hyde zhou 67233882cf V3.8.4 reduce code (#17428)
* fix vs2017 problems.

* simplify getTexture

* disable dof

* reduce pipeline settings code
2024-07-29 14:27:31 +08:00
hyde zhou f41241ac1f disable dof (#17429) 2024-07-29 11:35:57 +08:00
hyde zhou 75ae3943b2 fix vs2017 problems. (#17427) 2024-07-29 11:28:46 +08:00
James Chen 391fb1b49c Fix a crash if there is an unhandled promise while game.restart. (#17423) 2024-07-26 18:22:53 +08:00
hyde zhou f5688fe973 try to avoid msvc optimization (#17426) 2024-07-26 18:17:41 +08:00
James Chen 87f4b0d991 [feature, native] TextDecoder support to decode utf-16 buffer and create TextDecoder with "utf-8" and "utf8" (#17422)
* [feature] TextDecoder support to decode utf-16 buffer and create TextDecoder with "utf-8" and "utf8"

Fix a warning ( TextDecoder only supports utf-8 ) while using bullet wasm since it use "utf8" and "utf-16" decoder.

Refer to https://developer.mozilla.org/en-US/docs/Web/API/Encoding_API/Encodings

* Update comment in jsb_global.cpp
2024-07-26 17:56:11 +08:00
hyde zhou 574bd1de88 implement override queue pass name (#17320) 2024-07-26 16:08:41 +08:00
tangkai b9618eb4de fix bug: in editor, when switch the button transition Type from Color to Sprite and to Scale, back to Color, the default Normal Color will be black (#17411)
* fix bug: in editor, when switch the button transition Type from Color to Sprite and to Scale, back to Color, the default Normal Color will be black

* check by eslint

* change EDITOR to EDITOR_NOT_IN_PREVIEW

* fix bug: in editor, when switch the button transition Type from Color to Sprite and to Scale, back to Color, the default Normal Color will be black
2024-07-26 15:07:10 +08:00
hyde zhou ccdf616594 support default framebuffer depth stencil (#17405) 2024-07-26 11:05:04 +08:00
James Chen d62373a3e3 fixed #17051: [native] Keep the same behavior of Promise rejection and multiple resolve as nodejs and web. (#17369)
* fixed #17051: [native] Keep the same behavior of Promise rejection and multiple resolve as nodejs and web.
And keep the same stack format as  web.

* Update ScriptEngine.h
2024-07-26 10:30:20 +08:00
hyde zhou 6960a91b02 make WebGL 1.0 optional (#17412) 2024-07-25 22:48:16 +08:00
hyde zhou 27221f5484 fix render window attach camera and resize logic (#17414) 2024-07-25 18:26:30 +08:00
bofeng-song 62addd9ceb Fix label's adapter can not work normally for mini-game platform(alipay, taobao, bytedance) (#17407) 2024-07-24 17:51:18 +08:00
bofeng-song 89f966f80b Since the online game is already using the Taobao API, it needs to be adapted by the engine. (#17406)
* Revert "Due to the single-instance version of the WebSocket, the onMessage response res contains only one layer of data. For compatibility with the online game, Taobao removed the extra layer of data (#17389)"

This reverts commit 2f4e6d3caa.

* Since the online game is already using the Taobao API, it needs to be adapted by the engine.
2024-07-24 09:39:52 +08:00
qiuguohua 52b4d8c18b Modify the display of the slash screen (#17290)
* Modify the display of the slash screen

* Modify default values

* Modify the first screen template for WeChat mini-games

* Using the fitWidth and fitHeight variables

* Fixed ci

* Optimized code

* Modify the adaptation of the splash screen

---------

Co-authored-by: qiuguohua <guohua.qiu@cocos.com>
2024-07-23 16:13:57 +08:00
qiuguohua 6f630de1d1 Get the length of _dirtyRenderers directly (#17401)
Co-authored-by: qiuguohua <guohua.qiu@cocos.com>
2024-07-23 11:35:25 +08:00
GengineJS 80fda0b685 add geometry (#17402) 2024-07-23 11:34:43 +08:00
hyde zhou 8fbc04d68a add reflection probe (#17388) 2024-07-22 10:17:30 +08:00