Commit Graph

99 Commits

Author SHA1 Message Date
zhakesi
4d426ccbd1 remove enableBatch from spine/db (#11100)
* remove enableBatch from spine/db

* add deprecated

Co-authored-by: zhakesi <zhakesi@foxmail.com>
2022-05-16 12:41:30 +08:00
zhakesi
b0c97b6986 fix:set skeleton data, _cachedSockets should be reset (#10671)
Co-authored-by: zhakesi <zhakesi@foxmail.com>
2022-04-07 16:23:47 +08:00
kenshin
2b016c7eeb force update for spine color setting. (#10417) 2022-03-22 18:12:52 +08:00
zhakesi
c4730a29dc fix animation not work caused by creating spine in a hided node (#10380)
* fix animation not work caused by creating spine in a hided node

* use a flag to mark if need update skeleton data setting

Co-authored-by: zhakesi <zhakesi@foxmail.com>
2022-03-21 19:36:44 +08:00
zhakesi
9a4cf3784e fix spine in native platform can not get animation name (#10303) 2022-03-15 11:02:07 +08:00
zhakesi
8561d5e686 fix dragonbones/spine sockets transform (#10260) 2022-03-10 16:18:28 +08:00
zhakesi
d70256b7b5 avoid middileware-2d copping buffer from native to js (#10235)
* avoid middileware-2d copping buffer from native to js

* remove redundant function
2022-03-04 11:48:51 +08:00
bofeng-song
141128f148 refine context2d, reduce call from native to js (#10211)
* reduce c++ callback to js
2022-03-02 09:56:00 +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
zhakesi
cff5293a45 V3.4.1 local db (#10031)
* fix db can not move in editor

* fix db native mode
2022-01-21 19:00:04 +08:00
timlyeee
4d8b3a1266 add OHOS platform detection (#10028) 2022-01-21 11:09:01 +08:00
ChiaNing
2f1d6ae04e request IA by pool (#9967)
* request IA by pool

* change to use RecyclePool

* fix reset

* ia Start fix

* fix DB
2022-01-12 15:29:55 +08:00
timlyeee
1ffe722c4c Rename JsbBridgeWrapper API (#9923) 2022-01-07 17:43:25 +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 0600e26f7e.

* 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
PP
c84b4306ab fix culling deprecated module (#9937) 2022-01-06 23:50:54 +08:00
timlyeee
f5a6a64372 Jsb-event-handler for event dispatch (#9879) 2022-01-04 13:37:44 +08:00
Zhang mingzhen
0624fb1d2e Mask not work with spine v3.4.1 (#9864)
* add condition spine preRenderComponent validation before autoMergeBatches

(cherry picked from commit 04fcebde46)

* add explanations

(cherry picked from commit 72f8439cfd)

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2021-12-23 18:59:26 +08:00
zhakesi
3a165fb7d3 fix natvie gc function (#9810) 2021-12-14 14:02:34 +08:00
ChiaNing
99bdb07378 Revert "mesh buffer cache add (#9728)"
This reverts commit 1c0db6414a.
2021-12-03 19:46:09 +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
江战
e3c22253c1 Prevent inuse objects from GC (#9715)
* reserver pointer:]

* Update platforms/native/engine/jsb-scene.js
2021-11-24 10:18:29 +08:00
PP
f5511f4c87 Revert "Revert "optimize interface in screen module (#9176)"" (#9490)
This reverts commit b88d4845cc.
2021-10-15 10:21:04 +08:00
pandamicro
b88d4845cc Revert "optimize interface in screen module (#9176)"
This reverts commit 4735476945.
2021-10-14 23:07:23 +08:00
PP
4735476945 optimize interface in screen module (#9176)
* optimize interface in screen module

* remove DPR calculating

* update screen-adapter init

* set screen.resolutionScale as 1 by default

* remove pixelRatio getter in system-info

* remove sys.windowPixelRatio access

* optimize screen.windowSize

update

* convertToCocosScreenSpace

* change resolution-change to window-resize

* fix native UI

update

update UI

update UI

* optimize screen init

* fix subContextView

* fix root resize

* fix precision issue on Metal render end

* sys.windowPixelRatio

* use warnID

* remove screen.convertToCocosScreenSpace

* put private property and method together after public ones

* warnID

* fix landScape on CocosPlay

* fix DPR on vivo platform

* fix CI
2021-10-14 22:16:34 +08:00
timlyeee
1c437eb87e js invoke JAVA and OSX function without reflection (#9344)
Co-authored-by: LX <codingboeuf@jizamaoxuewangdeMacBook-Air.local>
2021-09-29 14:18:35 +08:00
江战
7a14686b01 fix reflection (#9404) 2021-09-27 09:06:57 +08:00
zhakesi
cc3fa2a0b0 fix spine not be packed in, jsb error (#9334)
Co-authored-by: Santy-Wang <wh19930829@qq.com>
2021-09-16 16:53:50 +08:00
Yun Hsiao Wu
4cf1350fe0 gfx: swapchain refactor (#9030)
* update effect.hideInEditor

* swapchain refactor

* webgl multi draw

* implicit depth/stencil format

* native adapt

* explicit resizable texture

* DrawInfo in InputAssembler

* device cached states

* sync defines

* gfx: empty backend

* update playground

* remove profiler camera

* update effect types

* fix pass.resetUniform
2021-08-31 19:40:50 +08:00
PP
fa6ba48c27 fix undefined window.location.protocol (#9185) 2021-08-16 15:22:21 +08:00
zhakesi
e3795899ec fix:when skeleton data destory clean all data. (#9139)
* fix:when skelton data destory clean all data.

previous version the info still exists in the data map,
this cause initializing skeleton failed second time.

* remove code no used any more
2021-08-06 17:05:28 +08:00
zhakesi
c35120b2bf fix:avoid animation's name not be a string type (#9114) 2021-08-05 11:17:45 +08:00
cary
b8ec697a23 Change the sync of native pass to message queue. (#9096) 2021-07-30 10:15:05 +08:00
Santy-Wang
9ed30ce2c9 change extension of ccon (#9091) 2021-07-29 16:48:33 +08:00
江战
6270f592be 3.3 some optimization (#9069) 2021-07-27 13:38:56 +08:00
Santy-Wang
617adca055 strip extension and change extension in minigame (#9061) 2021-07-24 20:11:41 +08:00
Santy-Wang
41e0656cfa support cconb in other platform (#9055)
* support cconb in minigame

* preprocess extension

* refine

* remove generic type

* dont change ext
2021-07-23 22:36:27 +08:00
jiaxin.lai
c7f68eb6e1 fix jsb physics (#9053) 2021-07-23 16:29:27 +08:00
jiaxin.lai
4cda45bfd9 physics unit-test and features base 3.3 (#9027)
* support ccd

* clearState after change type

* fix Instantiate rigid body with custom group

* add some extra functions

* update physics libs

* tweaks rigid body component

* add EVENT_UPDATE to PhysicsMaterial

* tweaks

* support switch physics backend

* remove redundant constants

* add config & min volume size

* update @cocos/physx to 1.0.4

* fix destroy cannon world

* correct init if manual construct physics system

* disable log info in test

* add some physics unit test

* add physics unit test

* make the config optional

* add runInEditor to selector

* pack physx js libs by default

* fix

* STASH

* stash

* tweaks

* rename

* update test

* support query trigger

* update @cocos/ammo to 1.1.6

* fix raycast with query trigger in physx

* raycast test with query trigger

* rename

* docs

* fix calculate local inertia (#8956)

* rename

* delete

* allow generate mesh/terrain collider at runtime

* tweaks

* use sap by default

* update @cocos/ammo to  1.1.8

* update @cocos/physx to 1.0.7

* update @cocos/cannon to 1.2.8

* update package-lock

* add ccd test

* remove config

* rename

* fix 2d phy sys typing

* support global allow sleep toggle for bullet

* tweaks

* use naive broadphase by default

* rename

* docs

* tweaks

* add missing jugement
2021-07-22 15:52:18 +08:00
江战
94a450c07e set nullptr (#9005) 2021-07-20 09:55:46 +08:00
江战
3eee6dfd4b 3.3 js message queue (#8991) 2021-07-16 15:20:31 +08:00
minggo
9fffa5d782 get delta time from cc.game (#8967) 2021-07-13 15:17:22 +08:00
mmyduckx
ec7a87afa3 add spine&db system && optimize system priority (#8866)
* add spine&db system && optimize system priority

* refine spine/db system

* fix misspelling

* refine

* remove errorID

* remove errorID
2021-06-29 16:59:52 +08:00
PP
960dc20334 compability with AudioClip method since deprecated on v3.1.0 (#8905) 2021-06-29 10:33:13 +08:00
santy-wang
c5dd05fbf1 Merge branch 'v3.1.2' of github.com:cocos-creator/engine into v3.3-merge 2021-06-28 14:40:34 +08:00
santy-wang
e58499bb3f Merge branch 'v3.2.0' of https://gitlab.cocos.net/publics/engine into v3.3-merge 2021-06-22 16:59:04 +08:00
mmyduckx
4d3418484a fix native spine slot bug (#8859) 2021-06-22 15:57:49 +08:00
mmyduckx
4eba23a7f0 fix spine blendmode in native (#8834) 2021-06-17 12:54:27 +08:00
cary
4305e4c132 Modify the memory pool and remove the deprecated code. (#8776) 2021-06-10 09:06:35 +08:00
minggo
424232493e Merge pull request #8777 from minggo/merge_v3.1.2
Merge v3.1.2
2021-06-09 14:12:21 +08:00
Zeqiang Li
ac09bea040 remove nativeSize() interface (#8745) 2021-06-09 09:54:46 +08:00