Commit Graph

425 Commits

Author SHA1 Message Date
santy-wang 91c884362d Merge branch 'v3.6.2' of github.com:cocos-creator/engine into v3.6.1-sync 2022-10-11 20:12:14 +08:00
Zhang mingzhen 37e67d55c8 Richtext add child optimization v3.7 (#13002)
* add child optimization(in 3.6.2)

(cherry picked from commit 6f44dd375faa1d62becf25818abc4f83ad7e08d1)

* add estimation before calculate size precisely

(cherry picked from commit 92b26a6f6b8f78abd2bcafffbe2a9c86b18a1e50)

* add anotations

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-10-10 16:00:56 +08:00
Zhang mingzhen bfa5a0ef18 richtext addChild optimization (#12928)
* 1. remove rebundant invoking
2. ttf canvas texture resizes to width and height as (1,1)

* remove start() and move it to onLoad()

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-09-28 11:39:29 +08:00
minggo 95a76235b6 Adjust some files (#12910)
`cocos/core` should not depend other modules, so move some files out of `cocos/core`:
- move some files from `cocos/core` to `cocos/game`
  - director.ts
  - splash-screen.ts
  - game.ts
 - move `cocos/core/root.ts` to `cocos/root.ts` as there is not better module to contain `root.ts`.
 - move `cocos/core/platform/view.ts` to `cocos/ui/view.ts` as screen related logic is moved to `cocos/core/platform/screen.ts`
2022-09-28 09:34:35 +08:00
Zhang mingzhen f40cbe910d sort the attributes (#12904)
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-09-27 14:44:25 +08:00
minggo 0d7c5c8f56 move cocos/core/scene-graph to cocos/scene-graph (#12868)
* move `cocos/core/scene-graph` to `cocos/scene-graph`
* move some files in `cocos/core/components` to `cocos/scene-graph`:
  - component.ts
  - component-event-handler.ts
  - component-event-handler-schema.ts
* move some files in `cocos/core/components` to `cocos/misc`: 
  - missing-script.ts
  - model-renderer.ts
  - renderer.ts
  - camera-component.ts
* move  `cocos/core/components/system.ts` to ``cocos/core/system.ts``
2022-09-26 11:02:22 +08:00
zhakesi 01899fb656 spine/dragonbones support batch mode in web platform (#12847)
* spine/dragonbones support batch mode in web platform

* set data hash 0 in commitMiddleware

* optimizate merge draw batch for middleware

* keep commitIA in batcher2d

* modify deprecated about commitIA
2022-09-26 09:58:19 +08:00
zhakesi c7761e5c19 middleware2d components rendering in native mode (#12788)
* middleware2d components rendering in native mode

* support spine/dragonbones set enable batch

* support spine rendering in batching mode

* get batcher2d instance from root

* process about with type conversion

* fix some code style

* use material hash to merge draw batch

* deal with fill z

* fix dragonbones fill z

* remove some code no used any more

* refactoring some code

* modify some code

* add free memory

* fix clang-tidy

* delete mesh-buffer-layout in destructor

* byte alignment
2022-09-20 13:31:33 +08:00
santy-wang f33523227f sync v3.6.1 to develop 2022-09-19 14:00:54 +08:00
minggo bd0fcc67c4 move cocos/core/pipeline to cocos/rendering (#12797)
* move cocos/core/pipeline to cocos/rendering
2022-09-16 16:10:26 +08:00
林玮 785fd91511 Add multi-windows support (#12243)
Co-authored-by: bofeng.song <bofeng.song@chukong-inc.com>
2022-09-15 14:55:44 +08:00
minggo b035f697bf Merge pull request #12769 from cocos/v3.6.1
V3.6.1
2022-09-15 09:46:23 +08:00
santy-wang 7bbad4a0a4 Merge branch 'develop' of github.com:cocos-creator/engine into v3.6.1-sync 2022-09-14 11:47:58 +08:00
LeeYip 44dd12a6fe [fix] bmfont uv bug when overflow is clamp (#12374) 2022-09-14 11:42:39 +08:00
ChiaNing 6ec93687b5 mask node active bug fix (#12734)
* mask node active bug fix

* misc
2022-09-09 19:33:49 +08:00
minggo 4261ccae76 move cocos/core/renderer to cocos/render-scene (#12729)
* move cocos/core/renderer to cocos/render-scene

* fix compiling error on native
2022-09-09 18:19:06 +08:00
ChiaNing 2f1567bb7d mask interface deprecated (#12667)
* mask interface deprecated

* fix

* warn add

* warnid

* msic
2022-09-09 16:34:43 +08:00
zhakesi 6de3d10128 remove sync to native FloatsPerVertex (#12721) 2022-09-09 10:56:22 +08:00
zhakesi ef9392829c remove uimeshbuffer sync to native floatsPerVertex (#12722) 2022-09-09 10:55:50 +08:00
minggo 70ef983a41 move some files into cocos/core/algorithm (#12723)
move cocos/core/easing, cocos/core/utils/aotob and cocos/core/utils/murmurhash2_gc to cocos/core/algorithm
2022-09-08 17:05:50 +08:00
Zhang mingzhen 63ee31606a when checking useSystemFont, the fontFamily should appear (#12684)
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-09-08 10:36:54 +08:00
minggo 2f10f48c15 adjust some folders (#12712)
move cocos/core/asset-manager to cocos/asset/asset-manager
move cocos/core/assets to cocos/asset/assets
merge cocos/core/builtin to cocos/asset/asset-manager
2022-09-07 18:45:54 +08:00
minggo aba9fdb63f Merge branch 'v3.6.1' into merge_v3.6.1 2022-09-02 20:08:18 +08:00
ChiaNing 482b20ea47 Mask Refactoring (#12636)
* first version mask

* image stencil material fix

* misc fix

* type change fix

* export fix

* some native code

* native fix

* use less remove

* remove isForMask

* material change

* delate sprite frame

* use less remove

* misc fix

* ci

* mate updte

* de

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-09-02 10:17:44 +08:00
zhakesi a388541901 spine/dragonbones renderdata use rgba8 color format (#12619)
* add color4b format

* render-2d adapter color format

* spine dragonbones use simple color

* rename V3F_T2F_C4B

* use attributes to init mesh buffer

* remove Vertex2DFormat
2022-09-01 21:44:19 +08:00
Zhang mingzhen 0410f097e1 particle local mode on native (#12624)
* particle local mode on native

* remove rebundant code

* when positionType changes, update entity data

* move to onEnable

* rename as renderTransform

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-09-01 11:35:19 +08:00
Zhang mingzhen 2879bb044b add deprecated tag of "Renderable2D" (#12606)
* add deprecated tag

* move it to 2d

* supplement other 2d deprecated tags

* fix CI

* add policy description

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-09-01 10:17:11 +08:00
Leslie Leigh (李的序) ebb775bfde Fix spine typing 3.6.x (#12402)
* Fix spine typing 3.6

* Update

* Fix

* Publish
2022-08-31 14:17:44 +08:00
Zhang mingzhen ec2043092e filled sprite color is incorrect with uiOpacity parent (#12533)
* 1. updateColorLate is rebundant
2. UIOpacity add node condition

* consistent interrupt opacities should be multiplied to the entity

* remove entity is null condition

* use isValid

* add comment

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-08-30 11:21:37 +08:00
Zhang mingzhen 8588c50db7 richtext-resetStates: use assert and remove unreasonable and deprecated condition (#12565)
* use assert and remove unreasonable and deprecated condition

* add debug condition

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-08-30 10:44:20 +08:00
minggo c5c7b987ea move cocos/core/gfx to cocos/gfx (#12559)
* move cocos/core/gfx to cocos/gfx
2022-08-26 17:51:46 +08:00
QingliWang 6a8f53b186 Add features for XR developement. (#12413)
* Change Android mainloop, add global config and template projects for XR.

* Change gfx/gles device's process flow for XR, working with other PRs, waiting.

* Change gfx/Vulkan device's process flow for XR, working with other PRs, waiting.

* Change render process for XR.

* Develop XR input and events.

* Develop 3D feature of UI widgets and raycast effect for XR.

Co-authored-by: fqamic <fqamic@vip.qq.com>
2022-08-22 16:34:45 +08:00
ChiaNing febb0d9bf9 change render entity enable default value (#12488)
Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-08-22 10:56:10 +08:00
ChiaNing 73885a8909 fix api link bug (#12425) 2022-08-17 11:33:42 +08:00
ChiaNing 1d557ed6fe UI performance optimization (#12390)
* Sprite performance optimization

* inline function

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-08-11 19:22:14 +08:00
ChiaNing f71ce47c10 fix native mask invert bug (#12362)
* fix native mask invert bug

* version change

* version change

* lock version change

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-08-09 18:38:07 +08:00
Zhang mingzhen 013b4b42f9 remove char mode condition in set entity color (#12355)
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-08-09 18:37:06 +08:00
Zhang mingzhen de0cde06e0 remove rebundant code. (#12352)
dont need to set color for children

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-08-09 18:36:32 +08:00
ChiaNing f2a1191b6d fix mask type change bug (#12340)
* fix mask type change bug

* enable fix

* fix

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-08-05 11:54:30 +08:00
Zhang mingzhen 7bbce32970 static drawinfo should be reset when flushing assembler (#12333)
* static drawinfo should be reset  when flushing assembler

* add reset drawinfo method

* revert mistake

* fix mistakes

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-08-04 22:14:23 +08:00
ChiaNing e19fe7ec9d fix batch bind (#12312)
* fix batch bind

* fix

* remove

* Update cocos/core/root.jsb.ts

* Update cocos/core/root.jsb.ts

* Update cocos/core/root.jsb.ts

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
Co-authored-by: Santy-Wang <wh19930829@qq.com>
2022-08-04 10:30:20 +08:00
ChiaNing 5e5c037e7b fix label vertex color bug (#12306)
Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-08-03 17:06:47 +08:00
ChiaNing 985f4fd94c Fix pass hash when blend change (#12294)
Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-08-02 16:05:24 +08:00
ChiaNing e2eb71b9a1 fix ui mesh renderer enable bug (#12265)
* fix ui mesh renderer enable bug

* add canRender

* remove material protect

* misc fix

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-07-29 14:01:36 +08:00
ChiaNing f8fb03e9af remove blend state on ui render (#12228)
* remove blend state on ui render

* tiledGourp updateBlendFunc hack

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-07-29 11:54:28 +08:00
zhakesi dc91a469ae use native middleware buffer (#12233)
* use native middleware buffer

* fix clang-tidy

* fix clang-tidy

* set useLinkData as meshBuffer's property

* refactoring some code

* set 2d.ini

* fix word component

* fix clip middleware2d

* ...

* function attributes to getAttributes
2022-07-28 19:00:30 +08:00
ChiaNing 46436e2e96 fix sprite frame trim bug (#12252)
* fix sprite frame trim bug

* onload change

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-07-28 17:11:31 +08:00
ChiaNing c538fd6d18 change Renderable2d name (#12213)
* change Renderable2d name

* misc

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-07-27 14:25:14 +08:00
Santy-Wang 52cd47fa08 optimize frame animation performance (#12209)
* optimize frame animation performance

* refine code
2022-07-27 10:21:13 +08:00
zhakesi b3e151c0af fix swap accessor not change buffer (#12204) 2022-07-27 10:03:07 +08:00