Commit Graph

139 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
ChiaNing
0587992cb1 fix label Blend Factor bug for BYTEDANCE (#10516)
* fix label Blend Factor bug for BYTEDANCE

* update
2022-03-26 18:53:07 +08:00
CC9701
f8d36990af update runtime ral (#10166)
Re: cocos-creator/3d-tasks#

Changelog:
1. Fix the value of windowHeight and windowWidth pixelRatio return by getSystemInfo(Sync) on VIVO platform
Add ral/API.md as ral API reference
2. Add API getFeaturePropertyInt which was described in ral/API.md
3. Fix CP call sys.garbageCollect() will get TypeError on OVH and cocosplay
2022-03-23 12:11:24 +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
PP
3a3f1ea151 fix set frame rate on runtime (#9874) 2021-12-27 14:35:18 +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
W-MTZing
f535925cb7 fixed Cocos play getting Webgl error (#9609) 2021-11-03 23:53:57 +08:00
PP
3c2abc5fba remove adapters code (#9494) 2021-10-22 18:45:28 +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
CC9701
04c58f61ad Fix touch event error on vivo platform (#9467)
Fix touch event error on vivo platform find in some device with notch screen
2021-10-14 10:29:36 +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
PP
ccd505ad14 migrate Engine Input Event into PAL (#9320)
* optimize input module

* rename

* fix CI

* update input-box.d.ts
2021-09-15 13:51:38 +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
PP
d916165d85 optimize hide show event implamentation on minigame / runtime platform (#9093)
* fix hide show event on runtime platform

* remove legacy adapter on minigame platform

update
2021-08-04 16:16:36 +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
2c83cda615 fix reading array buffer failed (#9070) 2021-07-26 20:14:06 +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
PP
db7f4a3e3c fix can't update default value when show keyboard on Xiaomi platform (#9033)
* add EditBox adapter on Xiaomi platform

* skip invalid input callback

* Revert "skip invalid input callback"

This reverts commit fc4e2ee38c.

* delay event registering after showing keyboard

* add note
2021-07-22 16:21:00 +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
PP
5a8c5432b7 update fetch ral from gitlab (#9019) 2021-07-20 16:45:58 +08:00
PP
2d396ab482 support target-commit.json in RAL repo (#9007)
* support generate ral latest-commit.md

* use target-commit.md

update

update

update

* update
2021-07-20 13:20:26 +08:00