Commit Graph

407 Commits

Author SHA1 Message Date
minggo a22d16bbe6 Merge branch 'v3.7.3' into merge_v3.7.3 2023-04-24 11:26:58 +08:00
qiuguohua 125f8c8978 [OpenHarmony] Fix the problem of compilation failure on mac due to incorrect case (#14847) 2023-04-20 14:42:42 +08:00
Zach Lee 3fab846f7b GFX Pipeline Cache. (#14759) 2023-04-13 17:41:30 +08:00
minggo bcc581dfd7 Merge branch 'v3.7.3' into develop_merge_v3.7.3 2023-03-24 10:57:28 +08:00
qiuguohua e68506916c Develop branch adapts to openharmony (#14582) 2023-03-20 14:18:52 +08:00
江战 c4be6be29d Fixes for GCC compatibility and Linux platform warnings (#14511)
* fix compile error on linux

* ignore more warnning

* move StringPool & StringEqual into StringPool
2023-03-09 09:45:22 +08:00
James Chen b7cec161c6 fixed #14473: [native] Remove 'Record' macro to avoid conflict. (#14474)
* fixed #14473: [native] Remove 'Record' macro to avoid conflict.
2023-03-07 13:57:34 +08:00
James Chen 78f4dd8be6 [native] Merge some optimizations from new serialization task (#14338)
* [native] Merge some optimizations from new serialization task

- Optimize the loading time of loading scene which has plenty of nodes.
2023-02-23 14:51:26 +08:00
minggo 313c58fe33 Improve utils api doc (#13922) 2022-12-28 15:04:56 +08:00
pandamicro afd22296b4 MIT license update and to new year 2023 (#13927)
* Cpp MIT license update and to date
* TS MIT license update and to date
2022-12-28 11:25:12 +08:00
James Chen d9dd6ecc74 Add ccstd::monostate for the first type of ccstd::variant. (#13762)
* Add ccstd::monostate for the first type of ccstd::variant.

* Update native/CMakeLists.txt

* Remove unused cc::MaterialPropertyVariant conversion in jsb_conversions_spec.h

It’s implemented in jsb_conversions.h by template.

* Update ccstd::variant conversion in jsb_conversion.h

* Don’t use std::get<NUMBER> to get element in variant.

* Update conversion for ccstd::variant.

* Fix the errors clang-tidy reported.

* Fix particle-align testcase reports the script error: _updateWorldBoundDescriptors is undefined

* Update TemplateUtils.h
2022-12-19 11:58:11 +08:00
Zeqiang Li 5e6eeb5c12 mem leak during restart (#13806) 2022-12-16 11:42:28 +08:00
江战 046a2b1378 Re-impl CC_ASSERT & CC_ASSERTF (#13588) 2022-12-05 17:12:30 +08:00
李吉林 13d49b1a9b fix mesh merge error (#13639)
* fix mesh merge error

* add log.h for android

* fix DebugRenderer update on metal
2022-12-05 10:18:22 +08:00
江战 9808aa1dba apply sequence id for log-remote (#13564) 2022-11-28 11:21:57 +08:00
Zach Lee 1461974c9f Fix MessageQueue deadlock. (#13278) 2022-11-22 11:11:37 +08:00
troublemaker52025 074a886f2e [feature] Add compressed mipmap (#13226) 2022-11-21 14:20:56 +08:00
江战 b157bb9454 Support to map multiple se objects with same address (#13220) 2022-11-14 18:12:59 +08:00
hyde zhou d33798f895 [develop] update native pipeline (#13270) 2022-11-11 22:51:31 +08:00
hyde zhou 87cff94d16 [develop] web-pipeline updated (#13158) 2022-11-08 12:48:30 +08:00
minggo d77afc3f06 Revert "Hide destructor (#13105)" (#13121)
This reverts commit b5804b58c8.
2022-10-21 18:55:32 +08:00
minggo b5804b58c8 Hide destructor (#13105)
* hide Image destructor

* hide HttpRequest destructor

* hide TextureBufferPool destructor

* hide gfx::Buffer destructor
2022-10-20 16:35:23 +08:00
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
Zeqiang Li c3ba2277ac fix potential mem leak (#12995) 2022-10-11 11:39:36 +08:00
江战 19fe1db252 LogRemote upgrade configuration protocol (#12833)
* update config

* Update LogRemote.cpp
2022-09-22 14:29:05 +08:00
Zeqiang Li f5c4dee6db Wgpu 3.6.2 WGPU_CI_ON (#12731) 2022-09-16 10:20:52 +08:00
hyde zhou cc01929094 [develop pipeline] uses ccstd::hash (#12658) 2022-09-14 18:25:46 +08:00
minggo fa8d498eb0 Merge branch 'v3.6.1' into merge_v3.6.1 2022-08-18 13:32:34 +08:00
江战 9d5ea47fc4 Fix header pragma once (#12450) 2022-08-18 10:31:52 +08:00
minggo 39af5ff285 add reset function (#12429) 2022-08-17 11:14:38 +08:00
James Chen c7e60d2bcb Use swig to generate js bindings (#12410) 2022-08-16 10:48:12 +08:00
江战 c32ba5d38c fix include order & revert boost/hash (#12212) 2022-07-27 13:46:01 +08:00
minggo d40b8739bc Merge branch 'v3.6.0' into develop_merge_v3.6 2022-07-18 10:38:14 +08:00
江战 38e8a689e1 Support to send log to server, currently is only used internally by QA team (#11832) 2022-07-13 16:23:39 +08:00
James Chen 9fdfb687e2 Mesh supports half float format and the data can be deleted
1. Add support for converting float to half from some vertex attributes at runtime; 
2. Add Mesh.allowDataAccess property for releasing data after it is uploaded to GPU
2022-07-04 16:59:51 +08:00
minggo 02a1eb0f55 Use raw pointer (#11804)
* Revert "use IntrusivePtr to share object (#11729)"

This reverts commit 8caec59711.

* Framebuffer uses weak reference

* make doDestroy reentency
2022-07-04 10:20:07 +08:00
James Chen 746bc1e571 Revert to use c++17 std::shared_mutex in ReadWriteLock.h (#11760) 2022-06-30 16:58:54 +08:00
minggo 8caec59711 use IntrusivePtr to share object (#11729) 2022-06-28 18:01:47 +08:00
minggo 1f7e135438 use reference count to release (#11699) 2022-06-27 09:55:09 +08:00
minggo 4b8b032ad8 delete subindex function (#11667)
* delete subindex function
2022-06-23 14:53:02 +08:00
minggo 5f6fbf4fd3 use reference count to share objects (#11642)
* use reference count to share objects
render pass/depth stencil texture/color textures will be shared outside, so use reference count

* add operator[]
2022-06-22 16:27:28 +08:00
minggo f92908c37f remove uint usage (#11596)
* remove uint usage
2022-06-18 15:25:27 +08:00
minggo d56e8db561 remove duplicate codes (#11588) 2022-06-18 10:54:18 +08:00
minggo 3e818c45c9 Change macro name (#11528)
* CC_PLATFORM_MAC_IOS -> CC_PLATFORM_IOS

* CC_PLATFORM_MAC_OSX -> CC_PLATFORM_MACOS

* add codes to keep compatible
2022-06-16 14:05:16 +08:00
James Chen 706c11f65c Fix the logic of fallback to 16 bits index buffer in Mesh.cpp, also fix memory leak if vertex count is less than 65536 on the platform which doesn't support ELEMENT_INDEX_UINT. (#11477)
* Fix the logic of fallback to 16 bits index buffer in Mesh.cpp, also fix memory leak if vertex count is less than 65536 on the platform which doesn't support ELEMENT_INDEX_UINT.

* Update Mesh.cpp
2022-06-14 13:35:18 +08:00
hyde zhou 04191c8d4c uses ccstd::variant instead of boost::variant2::variant (#11437) 2022-06-09 21:24:06 +08:00
James Chen 5ae5dbbd54 fixed #11339 : [v3.6] Crash after hot update by invoking cc.game.restart(). (#11348)
* fixed #11339 : [v3.6] Crash after hot update.
MessageQueue::terminateConsumerThread needs to wait consumer thead to exit. So don't detach consumer thead and we need to join the thread at the end of terminateConsumerThread.

* Delete _consumerThead after join.
2022-06-06 13:35:09 +08:00
James Chen 8f8924c3f4 fixed #10929: Hash computation in native engine causes loss of precision, use 32 bits hash for all platforms (#11179)
* fixed #10929: Hash computation in native engine causes loss of precision. Force use 32 bits hash for all platforms.

* More uint64_t -> ccstd:hash_t

* Some uint64_t -> uint32_t in SkeletalAnimationUtils.h/.cpp

* operator() return ccstd::hash_t now and add some comments.

* size_t -> ccstd::hash_t in StringPool.h, Font.h/.cpp
2022-05-25 13:54:57 +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
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