mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
58a6059e0c
* Fix spine memory leak when restarting game. * Fix memory leaks in js_se_setExceptionCallback and nativevalue_to_se(const cc::Data &from, ...) * Cleanup all hooks after 'AfterCleanupHookArray' is executed since user may add hooks in 'AfterCleanupHook' by mistake. For example which in SharedBufferManager::afterCleanupHandle. * Fix a memory leak in `operator=(TypedArrayTemp &&o) * Fix spine memory leak, use PersistentHandleVisitor to iterate JSB objects in Object::cleanup. * Update Class.cpp, use only one internal field. * Remove JSB mapping in visitor callback.
cocos-engine native part
It is the native backend of Cocos Creator. It works on iOS, Android, macOS and Windows.
Coding format and coding style
The coding format file is .clang-format, and the coding style format file is .clang-tidy. Please use clang-format to format the codes and use clang-tidy to fix the coding style before committing codes. See the linter auto-fix guide for more information.
Build Requirements
- Xcode 11.5+ to build mac games
- or Visual Studio 2017 15.7+ / Visual Studio 2019 to build win64 games
- NDK 21-22 is required to build Android games (23+ is not supported)
- Cmake 3.8+ is required
System Requirements
- macOS 10.14+
- iOS 11.0+
- 64-bit Windows 7+
- with vulkan 1.0 to 1.2 if want to run with vulkan
- Android 4.4+
- Android 7+ if want to run with vulkan
C++ related
- use C++17, but can only use these C++17 features
- std::string_view
- constexpr if