Santy-Wang
52cd47fa08
optimize frame animation performance ( #12209 )
...
* optimize frame animation performance
* refine code
2022-07-27 10:21:13 +08:00
Zhang mingzhen
74cf745db8
add protect condition of kerningDict and fontDefDictionary are undefined ( #12130 )
...
* add protect condition of kerningDict and fontDefDictionary are undefined
* add warining when give a null parameter
* if fontatlas is null, create one
* narrow the size of letterAtlas initialization
* create global variables for assignment
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com >
2022-07-22 12:15:07 +08:00
Santy-Wang
2ae2d94b93
optimize performance ( #12080 )
...
* optimize performance
* fix binding
* fix bugs
* fix bugs
* fix crash
* remove useless func
* fix ci
* fix ci
* fix ci
2022-07-21 11:50:43 +08:00
mikecoker
ca7a3e35af
fix a leak with htmlcanvaselements ( #11979 )
2022-07-20 23:05:56 +08:00
ChiaNing
1bf931f29b
fix graphics update material crash ( #12038 )
...
Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com >
2022-07-16 17:19:00 +08:00
ChiaNing
6b64c7e8da
Remove custom Material flag ( #12021 )
...
* Remove custom Material flag
* remove commit model material
Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com >
2022-07-16 09:36:32 +08:00
Santy-Wang
945e715a9c
restructure life cycle ( #11971 )
...
* restructure life cycle
* fix bugs
* optimize
* remove some code
* refine
* fix dragonbone custom material
* fix particle crash
* changed to CCAssert
Co-authored-by: liqiao <liqiao@cocos.com >
2022-07-14 16:33:30 +08:00
Zhang mingzhen
05bde85ed7
V3.6.0 batcher2d code sorting ( #11943 )
...
* parentOpacity move to RenderEntity
(cherry picked from commit f1d9b5cb55c1912bd61ba490ec46ce7108097556)
* parentOpacity remove from entity and put into funtion parameters
* unify dynamic and static handle process
* reform entity shared buffer structure
* modify default value of struct
* set drawinfo type for spine/dragonbones
* remove legacy method
* reform color .type as uint8 from float
* CI fix
* remove static-cast
* CI fix
* CI fix
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com >
Co-authored-by: liqiao <liqiao@cocos.com >
2022-07-13 15:48:31 +08:00
ChiaNing
edbe0fd983
fix mask graphics ( #11941 )
...
Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com >
2022-07-12 15:20:28 +08:00
ChiaNing
d13ebb2fdb
Mask image-stencil change ( #11932 )
...
* Mask image-stencil change
* CI fix
* size change
* event change
* event change
* event
* mask type change to native
Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com >
2022-07-12 13:36:50 +08:00
Santy-Wang
16660e852f
fix tiled ( #11934 )
2022-07-12 11:32:33 +08:00
Santy-Wang
ddf0a72fc4
fix richtext bmfont error ( #11921 )
2022-07-11 15:37:25 +08:00
Zhang mingzhen
b32830a3e8
V3.6.0 batcher2d to native ( #11592 )
2022-07-08 17:10:48 +08:00
ChiaNing
65eda08c06
fix mask image stencil bug ( #11710 )
...
Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com >
2022-06-27 14:41:33 +08:00
ChiaNing
529155281f
Fill the Z Position in UI ( #11151 )
...
* Fill the Z Position in UI
* useless remove
* add justTranslate hack
* Revert "add justTranslate hack"
This reverts commit 1de036856c02e3b9c0d6e62fa823c9341c1c3fd4.
Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com >
2022-05-25 18:45:34 +08:00
minggo
7814949998
Merge branch 'v3.5.1' into v3.6.0_merge_v3.5.1
2022-05-24 11:53:57 +08:00
pandamicro
dba83c270d
Fix multi blank lines ( #11116 )
2022-05-17 11:56:06 +08:00
ChiaNing
045e6430cb
add base-Renderer and separate & rename renderableComp ( #10903 )
...
* add base-Renderer and separate & rename renderableComp
* rename
* some fix
* misc fix
* format change
* file name change & api doc add
Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com >
2022-05-09 17:44:56 +08:00
Santy-Wang
23de9188ba
V3.5 docs ( #10898 )
...
* adjust api docs and delete useless annotation
* delete useless annotation
2022-04-27 15:22:22 +08:00
minggo
84c27e7f71
Merge branch 'v3.5.0' into v3.6.0_merge_v3.5
2022-04-24 13:41:27 +08:00
Zhang mingzhen
436eb46fa4
add wrapmode settings ( #10754 )
...
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com >
2022-04-14 19:02:40 +08:00
minggo
be735449af
Revert "remove some deprecated api ( #10656 )" ( #10694 )
...
This reverts commit a1b1fc5a09 .
2022-04-08 11:51:06 +08:00
minggo
a1b1fc5a09
remove some deprecated api ( #10656 )
...
* remove some deprecated api
2022-04-07 16:31:02 +08:00
minggo
a6bf766170
Merge branch 'v3.5.0' into v3.6_merge_v3.5
2022-03-29 18:26:40 +08:00
Zhang mingzhen
f7c2559944
Chunk renderdata reform v3.6 ( #10329 )
...
* reform chunk & renderdata
* add some optimizations
* update eslint
* add optimizations
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com >
2022-03-23 11:21:33 +08:00
Santy-Wang
ab82e1b42d
remove hidden ( #10414 )
...
* remove hidden
* fix typo
* fix unit-test
* turn on auto fix
2022-03-22 15:11:16 +08:00
ChiaNing
bd89a7bc1a
protect when texture insert to atlas ( #10214 )
2022-03-03 10:01:24 +08:00
Santy-Wang
b57b805e8b
Revert "fix fuzzy text on high resolution displays ( #9888 )" ( #10157 )
...
This reverts commit 24f74e178c .
2022-02-22 23:06:10 +08:00
Santy-Wang
2aed94a34f
Revert "change DPR to 1 when BMfont ( #10154 )" ( #10156 )
...
This reverts commit c27b2d34b6 .
2022-02-22 23:02:02 +08:00
ChiaNing
c27b2d34b6
change DPR to 1 when BMfont ( #10154 )
2022-02-22 19:20:04 +08:00
pandamicro
50a43e18e4
Shared vb accessor for spine ( #10077 )
...
* Robust updateOpacity in batcher & cleanup code
* Support Batcher2D commitIA
* Support customized buffer size for StaticVBAccessor
* Reorganize RenderData logic and prepare spine refactor
* spine realTimeTraverse using dedicated accessor
* Support spine clipping
* Fix updateOpacity in batcher 2d
* Support Spine cache mode
* Fix ci
* Use different accessor for tint spine
* Update effect
* Fix native spine and dagonbones IA range issue
* Fix spine tint accessor registartion
* Revert darkColor default value
* Fix spine accessor switching issue and render data init issue
* Shared vb accessor for dragonbones (#44 )
* Shared vb accessor for dragonbones
* fix code style
* add explanation why need resize render data in realTimeTraverse
Co-authored-by: zhakesi <liqiao@cocos.com >
2022-02-18 15:24:59 +08:00
ankye sheng
24f74e178c
fix fuzzy text on high resolution displays ( #9888 )
...
* fix fuzzy text on high resolution displays
* modify devicePixelRatio scale factor and fix eslint
modify devicePixelRatio scale factor and fix eslint
fix eslint error
fix fuzzy text on high resolution displays
modify devicePixelRatio scale factor and fix eslint
modify devicePixelRatio scale factor and fix eslint
fix eslint error
fix fuzzy text on high resolution displays
modify devicePixelRatio scale factor and fix eslint
modify devicePixelRatio scale factor and fix eslint
fix eslint error
fix fuzzy text on high resolution displays
fix fuzzy text on high resolution displays
modify devicePixelRatio scale factor and fix eslint
modify devicePixelRatio scale factor and fix eslint
fix eslint error
fix fuzzy text on high resolution displays
fix rebase 3.4.2 ,limit dpr 1 or 2
fix font min dpr
fix font min dpr
fix fuzzy text on high resolution displays
modify devicePixelRatio scale factor and fix eslint
modify devicePixelRatio scale factor and fix eslint
fix eslint error
fix fuzzy text on high resolution displays
Merge branch 'v3.4.1' of github.com:ankye/engine into v3.4.1
modify devicePixelRatio scale factor and fix eslint
modify devicePixelRatio scale factor and fix eslint
fix eslint error
fix fuzzy text on high resolution displays
modify devicePixelRatio scale factor and fix eslint
modify devicePixelRatio scale factor and fix eslint
fix eslint error
fix fuzzy text on high resolution displays
fix fuzzy text on high resolution displays
modify devicePixelRatio scale factor and fix eslint
modify devicePixelRatio scale factor and fix eslint
fix eslint error
fix fuzzy text on high resolution displays
fix rebase 3.4.2 ,limit dpr 1 or 2
fix font min dpr
fix eslint error
fix fuzzy text on high resolution displays
fix fuzzy text on high resolution displays
modify devicePixelRatio scale factor and fix eslint
modify devicePixelRatio scale factor and fix eslint
fix eslint error
fix fuzzy text on high resolution displays
Co-authored-by: shengxiehua <shengxiehua@soulapp.cn >
2022-02-16 10:09:22 +08:00
ChiaNing
8f87cbd483
useless UI_GPU code delete ( #10048 )
2022-01-25 19:14:41 +08:00
pandamicro
bd3c30fd4c
BufferAccessor refactor for Batcher2D ( #9802 )
...
* VB cache add(only simple)
* sliced add
* after rebase
* Extract BufferAccessor from MeshBuffer
* Refactor for linear buffer accessor
* Support simple sprite
* Fix initialization issues
* Fix simple sprite rendering
* Rough adaptation
* tweaks
* Fix LinearBufferAccessor's appendBuffers
* Cleanup mesh buffer codes
* Reorganize ia allocation
* Middleware adaptation & Particle 2d adaptation (#31 )
* Middleware adaptation
* particle-2d adaptation
* Initial implementation of static vb accessor
* Complete static vb accessor
* Improve static vb accessor
* Ensure MeshBuffer.byteOffset
* Fix record batch process in static vb accessor
* Fix vb reset
* simple & simple label add (#32 )
* Meshbuffer static length (#33 )
* set ib only first time
* Meshbuffer static length
* Some name refactor
* remove RenderData.vData
* Improve buffer update logics
* Use appendIndices in fillBuffers
* The quickest version(simple & label can render) (#34 )
* Revert "Use appendIndices in fillBuffers"
This reverts commit 0600e26f7eee277c820c3097b1f48f79fcf60890.
* the quickest version
* pass renderScene
* batch
* change batcher update
Co-authored-by: pandamicro <lphuabin@gmail.com >
* Move ia record logic from accessor to batcher
* Make vertexFormat sourced from render data
* sliced & bar-filled (#35 )
* radial-filled & tiled & label (#36 )
* radial-filled & tiled
* bmfont & char label
* function change
* name change
* Remove uvDirty
fixes
Fix uv update for sprite
* Reduce mesh buffer setDirty
* uv fix
* Format label
* Refactor color and cascade opacity mechanism
* Fix empty render data or chunk absent issue
* fix some uv (#37 )
* Fix non stop allocation issue in static vb accessor
* fix bmfont richText & remove uiComponent (#38 )
* fix bmfont uv
* fix richText & remove ui Component
* Fix mesh render data batching
* Small fix
* Update for spine
* Formatting jsb spine and editor
* middle ware & particle 2d (#39 )
* motion-streak
* dragon Bones add
* tiled map unsafe change
* particle-2d add
* function name change
* some function change (#40 )
* Fix RenderData pool usage
* Fix merge issue
* fix misc bug (#41 )
* Native adaptation for spine and dragonbones with MeshRenderData
* misc fix (#42 )
* Improvements
* Fix ci and improvements
Co-authored-by: ChiaNing <sun.cloud.mo@gmail.com >
2022-01-07 15:43:04 +08:00
ChiaNing
34b1b70431
fix bmfont line width bug ( #9793 )
...
* fix bmfont line width bug
* Fix CI
* fix CI
2021-12-13 16:25:23 +08:00
ChiaNing
99bdb07378
Revert "mesh buffer cache add ( #9728 )"
...
This reverts commit 1c0db6414a .
2021-12-03 19:46:09 +08:00
ChiaNing
3673752872
Revert "fix mesh buffer cache update bug ( #9734 )"
...
This reverts commit f1c8e2528a .
2021-12-03 19:45:55 +08:00
ChiaNing
f1c8e2528a
fix mesh buffer cache update bug ( #9734 )
2021-11-26 14:01:52 +08:00
ChiaNing
1c0db6414a
mesh buffer cache add ( #9728 )
...
* UI MeshBuffer Cache add
* support hierarchy changed event
* notify upper
* use Dirty by Hierarchy Changed
* PR fix
* Fix CI
* fix CI
* support hierarchy changed event & function name change
* function name change
* comment add
* type change
Co-authored-by: santy-wang <wh19930829@qq.com >
2021-11-25 21:25:16 +08:00
ChiaNing
0173699089
Add renderData cache & simplify merge check ( #9651 )
...
* Add renderData cache & simplify merge check
* move function
* remove material id
* change dirty name
* fix CI
2021-11-19 18:21:02 +08:00
zhakesi
fed044e8fb
optimize opacity update ( #9679 )
...
* optimize opacity update
* remove _cacheAlpha
* modify code style
* Update cocos/core/scene-graph/node-ui-properties.ts
* Update cocos/core/scene-graph/node-ui-properties.ts
* 1. supplement unit test case
2. supplement default dirty parameter
(cherry picked from commit 7e62d265ffbc8566e92bfcc10c1f9eb68e081487)
Co-authored-by: Santy-Wang <wh19930829@qq.com >
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com >
2021-11-19 17:35:19 +08:00
ChiaNing
cbc142f89c
fix label memory leak when destroy ( #9677 )
...
* fix label memory leak when destroy
* function move
2021-11-17 17:15:19 +08:00
ChiaNing
4a60f0a513
fix image Stencil bug ( #9478 )
2021-10-14 10:30:01 +08:00
ChiaNing
c7e432e50b
fix trim bug ( #9451 )
2021-10-14 10:29:36 +08:00
ChiaNing
24fe3ff784
UI GPU dirven add ( #9378 )
...
* uniform
* uniform buffer add
* add dummy IA
* first working version
* misc & data structure optimize
* fix webGL1 bug
* rebase on 3.3
* add maxQuadPerDrawcall by device
现在每个DC能绘制的数量由设备返回的 uniform 数量上限决定
* add index
* index bug fix
* sliced ia add(Not finish)
* change mat4 to vec4
* change stride num
* new vec4PreUI finish
* misc fix
* size & anchor dirty add
* bug fix
* add UICapacityDirty
(cherry picked from commit 417e10c8d3422363d80828539b110b93ee4d3cb1)
* static buffer cache version
(cherry picked from commit 1ffe7e7943cdf9af085aeda5ca218c3442fa9119)
* static buffer update version
(cherry picked from commit 964d9cb5b3230963b2a535acac99a34cde7eb63c)
* cache localbuffer
(cherry picked from commit 641b956def64023e0d47be66bc0c0a37ef1e9791)
* fix setPosition event & fix DS release
* weak sliced & filp tiled mode add
* fix tiled y
* fix sliced bug
* ugly but work filled type add
* update effect
* filled mode effect
* shader fix
* RenderData dirty for render data update
* revert fillbuffer
* misc fix
* support label bmfont by meshBuffer
* fix sliced bug & commit Model
* fixed some render dirty flag bug
* cut code by macro.UI_GPU_DRIVEN
* cut code by UI_GPU_DRIVEN Macro on build
* cut file by UI_GPU_DRIVEN
* I-batcher interface add
* remove render queue cache
* file name change
* file name change
* after merge
* fix for v3.4
* useless remove
* fix texture rotation
* fix sliced when atlas rotation
* useless code remove
* native bind
* update effect
* fix DynamicOffsets bind bug
* PR review fix
* effect encapsulation
* change chunk
* update effect
* update shader
* remove color in fs
* move code
* fix UBO buffer bug
* fix ubo count to 10
* fix vk bind
2021-09-29 22:32:33 +08:00
ChiaNing
a7716e4347
fix Fix label outline artifact on web platforms ( #9307 )
2021-09-09 15:32:19 +08:00
ChiaNing
2f861cd38d
fix mesh Buffer vertexCount Bug ( #9155 )
2021-08-09 18:29:16 +08:00
Santy-Wang
9d23637f06
delete useless code ( #8601 )
...
* delete useless code
* refine format and fix typo
2021-07-09 14:38:04 +08:00
ChiaNing
cbf7090542
sprite fillbuffer cache & sprite misc change when set spf ( #8876 )
...
* sprite fillbuffer cache & sprite misc change when set spf
* misc fix
* remove Rect Dirty & add uiTransformDirty
* remove getHash
2021-06-25 13:57:24 +08:00
zxx43
e1f5d7393a
V3.1.2 optimization #7487 ( #8743 )
...
* optimize fillBuffers & updateWorldTransform
* modify _updateWorldAlpha & invalidateChildren
* 3d should consider parent rotation, so use the Vec3.transformMat4 function
* remove if check null
* remove if check
2021-06-02 11:25:40 +08:00