Commit Graph

39 Commits

Author SHA1 Message Date
李吉林 debd809319 crop occlusion query (#11990)
* crop occlusion query
2022-07-14 19:32:47 +08:00
James Chen fcebfcb1b9 [JSB] Fix some performance issues for 3.6.0 branch (#11523)
* [JSB] Fix wrong path of  pipeline-state.ts in cc.config.json which causes pipeline-state.jsb.ts takes no effect.

* [JSB] Optimize MeshRenderer.setInstancedAttribute for native. Avoid to generate temporary JSB objects.

* [JSB] Optimize se::Object::getArrayLength.

* Reorder typedarray type in Object::getTypedArrayType, check Float32Array first since we use Float32Array and unsigned integer much more frequently.

* More std::vector.reserve in InstancedBuffer.cpp & Model.cpp

* Update stack size to 64 bytes for array in js_Model_setInstancedAttribute
2022-06-16 13:56:38 +08:00
Myway 7e2c407c95 add initLightingmap method in native model (#11490) 2022-06-14 13:34:10 +08:00
James Chen fdc977ee78 [v3.6] Cleanup code, fix typo and add missing property bindings (#11254)
* Fix typo: Fog::setfogRange -> Fog::setFogRange

* Model::getInstancedAttributeBlock should return reference.

* Update scene.ini

* Fix errors in scene.ini.

* Put Node::_children private.

* Update access level, return value, typo.

* revert Ambient.h

* Remove an unused method: RenderScene::removeModel(index_t idx);

* Update scene.ini

* Add missing propery bindings in Shadows & AmbientInfo.

* Remove unused accessor in Ambient.h
2022-05-31 09:57:30 +08:00
James Chen 024737aebc fixed #11195: Rename cc::optional, cc::any, cc::variant to ccstd::optional, ccstd::any, ccstd::variant (#11197)
* Move Any.h/Optional.h/Variant.h to base/std and rename them to lowercase.

* fixed #11195: Rename cc::optional, cc::any, cc::variant to ccstd::optional, ccstd::any, ccstd::variant

* Format code.
2022-05-24 18:47:16 +08:00
李吉林 566cc0e9d8 fix update octree twice (#10945)
* fix update Octree twice

* rename to _worldBoundsDirty
2022-05-06 15:44:31 +08:00
minggo 271cc5cf23 Remove some format rule (#10919)
* remove some rules
* format all codes with new format rule
2022-05-04 13:09:24 +08:00
minggo b3e5efa16d return temp value instead (#10855)
as this function may return a temple object, so return object reference is not suitable
2022-04-25 14:11:53 +08:00
minggo 444bfe31c4 Refactor CC_NEW/CC_DELETE (#10810)
* replace CC_NEW/CC_DELETE with ccnew/delete
2022-04-21 16:39:34 +08:00
Cocos Robot df50878b14 [ci skip][AUTO]: Automated clang-format update: 735860a2aa285979c890bad6356b14afeff13db5 (#10560) (#10570)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-29 16:40:20 +08:00
minggo 1a9d49e4c6 replace std::list/std::array with ccstd::list/ccstd::array (#10560)
* replace std::list/std::array with ccstd::list/ccstd::array
2022-03-29 16:36:53 +08:00
hyde zhou b1e8733742 [v3.6.0 pipeline] uses Root::getPipeline instead of RenderPipeline::getInstance() (#10486)
Co-authored-by: Zeqiang Li <zeqiang-li@outlook.com>
Co-authored-by: GengineJS <476393671@qq.com>
Co-authored-by: zxx43 <zxx43@hotmail.com>
2022-03-25 11:04:50 +08:00
Cocos Robot a2df4e4dbd [ci skip][AUTO]: Automated clang-format update: 771de57fc2c1edbaaf3ae94e77f9801b0379cc6c (#10469) (#10472)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-24 13:50:39 +08:00
minggo 7f4cb9e3b1 Remove string (#10469)
* replace std::string with ccstd::string
2022-03-24 11:53:10 +08:00
Cocos Robot 24d84664f8 [ci skip][AUTO]: Automated clang-format update: 3de15842004cba2142ec0fecd82876d8f6a28236 (#10402) (#10424)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-21 16:04:49 +08:00
minggo 34bf14269c unify stl (#10402)
* add ccstd::vector
* replace cc::vector with ccstd::vector 
* replace std::vector with ccstd::vector
* do not include <vector>
2022-03-21 15:55:02 +08:00
李吉林 8b611affa2 V3.6.0 font debug profiler (#10387)
* add Font&DebugRender&Profiler

* add profiler for metal

* fix profiler review problem
2022-03-21 11:41:54 +08:00
李吉林 d793157a71 add dynamic mesh (#10291)
* add dynamic mesh

* Mesh init refactor

* fix geometry renderer bug

* dynamic mesh review update

* MeshUtils refactor

* do not export createDynamicMesh
2022-03-16 16:55:49 +08:00
Cocos Robot c3f2f4a1cb [ci skip][AUTO]: Automated clang-format update: 3b49861e5f (#10261) (#10267)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-09 13:38:22 +08:00
minggo 73c303f556 Merge branch 'v3.5.0' into merge_v3.5.0 2022-03-08 14:53:00 +08:00
troublemaker52025 e723e5aa3a Add renderMesh bias for v3.5.0 (#10102)
* Add renderMesh bias for v3.5.0

* fix ci error

* change function name

* fix merge error

* update

* update 2

* update

* update

* update 2
2022-02-24 23:27:09 +08:00
bofeng-song 7e2fce85f9 sychronize engine to native (#10099)
* sychronize engine to native according to  https://github.com/cocos-creator/engine/pull/10041
2022-02-15 10:09:53 +08:00
mmyduckx e52bb2bf06 add forward declaration for pipeline (#10082) 2022-02-14 09:31:00 +08:00
Yun Hsiao Wu 14a17c9d22 license upgrade (#4210) 2022-01-24 17:18:47 +08:00
minggo 5410a48a58 Implement more logic in native (#4131)
Co-authored-by: bofeng.song <bofeng.song@chukong-inc.com>
Co-authored-by: dumganhar <dumganhar@gmail.com>
Co-authored-by: mmyduckx <308303735@qq.com>
Co-authored-by: Patrice Jiang <397136899@qq.com>
Co-authored-by: 江战 <40414978+PatriceJiang@users.noreply.github.com>
2022-01-07 18:39:40 +08:00
troublemaker52025 4e231f4232 updateLightingmap sync to native-engine for v3.4.1 (#4109)
* updateLightingmap sync to native-engine for v3.4.1
2021-12-20 10:34:23 +08:00
李吉林 67b7de1948 updateWorldBoundUBOs only necessary (#4099)
* updateWorldBoundUBOs only necessary
2021-12-10 14:59:00 +08:00
李吉林 bed27fcccf V3.4.0 occlusion query2 (#3975)
* occlusion query
Co-authored-by: lijilin <jilin.li@cocos.com>
2021-10-13 18:21:03 +08:00
李吉林 fa210fa955 add octree scene manager (#3891)
* add octree scene manager
Co-authored-by: lijilin <jilin.li@cocos.com>
2021-09-17 11:20:05 +08:00
GengineJS d4a7f06068 Fix the incorrect ModelBounds of BakedSkinningModel (#3791) 2021-08-02 17:06:35 +08:00
GengineJS 838721ef30 [Fix] native instance bakeanim not working (#3714) 2021-07-16 09:53:54 +08:00
GengineJS 8b4b7cad8a [Fix] the problem that the pipeline scene data switch scene ia is null (#3724) 2021-07-16 09:37:33 +08:00
GengineJS 979c0d950e AABB shared data (#3655) 2021-06-28 15:31:57 +08:00
江战 0a0f85849e V3.3 fix ios android crash (#3656) 2021-06-25 21:03:23 +08:00
江战 1ee3707307 3.3 fix instance crash (#3645) 2021-06-24 14:08:36 +08:00
GengineJS b8f54069c0 [Add] Native scene object update function (#3638) 2021-06-22 16:41:13 +08:00
minggo c98a1251a0 Revert "[add] Native scene object update function (#3602)" (#3634)
This reverts commit 8cc944277f.
2021-06-18 18:12:50 +08:00
GengineJS 8cc944277f [add] Native scene object update function (#3602) 2021-06-18 17:34:06 +08:00
cary d77dbb3a53 implement scene management in native(#3584) 2021-06-02 17:22:33 +08:00