Commit Graph

7 Commits

Author SHA1 Message Date
smilediver ebdf2a7f6f
SpriteFrameCache: fix dangling ref in `removeSpriteFramesFromTexture()` (#2106) 2024-08-27 23:28:51 +08:00
j-jorge 15268dc182
Remove the NS_AX_BEGIN and NS_AX_END macros. (#2100) 2024-08-26 00:25:33 +08:00
halx99 a3a5203fb5
Mark AXLOG, AXLOGINFO, AXLOGWARN, AXLOGERROR deprecated (#2017)
* Mark AXLOG, AXLOGINFO, AXLOGWARN, AXLOGERROR deprecated

* Fix winuwp build
2024-07-05 07:51:36 +08:00
halx99 ad051f353f
Update TLD to axmol.dev in sources (#1977) 2024-06-10 02:25:43 +08:00
tkzcfc 16cb4b5e9d
When loading csb files, prevent repeated loading of plist files (#1844)
* When loading csb files, prevent repeated loading of plist files

* Add more feature

* Rename function

* Use isSpriteFramesWithFileLoaded to determine whether the atlas is loaded

* use string_view instead of string

* Update SpriteFrameCache.cpp

* Fix compilation error
2024-04-23 21:21:53 +08:00
Deal 9774d4751c
Fix memory leaks refreshed (#1638)
* Fix memory leaks when axmol apps exit on non-embed systems

    1. DriverBase no destroyInstance
    2. Every object inherited from ax::Ref shoud destory before ScriptEngineManager, otherwise will trigger it's reinit and leak
    3.  QuadCommand always leak isolated indices
    4. static singleton should'nt inhert from ax::Ref due to destory it before ScriptEngineManager impossible
    5. Make Director don't inherit from ax::Ref due to it also cause ScriptEngineManager re-init, because we destroy ScriptEngineManger in destructor of Director
    6. Explicit Director managed by Application and don't delete self at purgeDirector, since it will release at mainLoop and re-init in glView->pollEvents then leak
    7. Rename ApplicationProtocol to ApplicationBase
    8. Rename purgeDirector since we don't delete director self at it, maye rename to cleanup
    9. Change ShaderCache to new/delete singleton, managed by ProgramManager

---------

Co-authored-by: lich426 <lich426@gmail.com>
2024-01-29 22:30:14 +08:00
Deal(涓€绾跨伒) abd8029f64 Remove CC prefix from code file name (#1230)
* Add migrate sources tool

* Fix include replace regex

* Fix compile

* Migrate maually

* Disable sources-migrate tool by default

* Fix ci

* Fix ci

* Improve source migrate

* Fix ios/tvos ci

* Fix ios/tvos ci

* Fix
2023-06-11 13:08:08 +08:00