Commit Graph

11865 Commits

Author SHA1 Message Date
Ricardo Quesada 2d2e15d275 Key should start with '/' to gain performance
Signed-off-by: Ricardo Quesada <ricardoquesada@gmail.com>
2013-09-06 22:51:47 -07:00
Ricardo Quesada 3a0e957e9e compatible with cocos2d c++ guidelines 2013-09-06 19:02:24 -07:00
Ricardo Quesada bf6750067f little optimization.
string is created when needed
2013-09-06 19:00:12 -07:00
Ricardo Quesada b2a81b5b86 Removes some Hungarion notation...
...and improves performance in FileUtils: String is not created
2013-09-06 18:46:33 -07:00
Ricardo Quesada ef622b23bd lazy alloc component container
faster and less memory
2013-09-06 16:00:24 -07:00
Ricardo Quesada b78382d5e5 Performance improvements in FileUtils / TextureCache
Added common "apple" platform to avoid duplicate files in FileUtils and other common files
Improves performance in fetching files.
2013-09-06 15:33:28 -07:00
zhangbin 5cb32f126a Change the linked commit of submodule plugin. 2013-09-06 18:06:12 +08:00
성낙호 95c6c66d58 * obey naming convention
* hide unnecessary methods from public.
2013-09-06 16:10:11 +09:00
minggo 76a1b36191 Merge pull request #3546 from minggo/alloc_perf_test
Alloc perf test
2013-09-05 23:30:15 -07:00
minggo 8e0bce344c Merge branch 'alloc_perf_test' of https://github.com/minggo/cocos2d-x into alloc_perf_test 2013-09-06 13:45:59 +08:00
minggo d723c4ef3f Merge branch 'alloc_perf_test' of https://github.com/ricardoquesada/cocos2d-x into alloc_perf_test 2013-09-06 13:45:23 +08:00
minggo 1664d3503d add PerformanceAllocTest.cpp/h to vs project and fix some compiling errors 2013-09-06 12:51:37 +08:00
Ricardo Quesada 1071ab9d37 Adds a new test: sprite with image 2013-09-05 21:35:15 -07:00
minggo 0131ecf705 add PerformanceAllocTest.cpp/h to Android.mk and linux project setting 2013-09-06 11:44:10 +08:00
Ricardo Quesada 02500372ed Adds new perf test: alloc / dealloc 2013-09-05 20:02:04 -07:00
minggo 563450624f Merge pull request #3542 from natural-law/develop
Add code of plugin as a submodule.
2013-09-05 18:35:28 -07:00
minggo 249b4d79a3 Merge pull request #3503 from dabingnn/Iss2460-glfw-refractor
Iss2460 glfw refractor
2013-09-05 18:28:31 -07:00
zhangbin eace2d1381 Add plugin code as submodule 2013-09-05 14:09:09 +08:00
zhangbin b550d6c429 Remove the code of plugin. 2013-09-05 14:08:07 +08:00
samuele3hu 5d22b8671e Merge branch 'develop' of https://github.com/cocos2d/cocos2d-x into TableView 2013-09-04 22:19:10 +08:00
samuele3hu 4f9a9bfe85 issue #2433:Modify ScriptHandlerMgr's enum to enum class and modify some related functions 2013-09-04 22:17:26 +08:00
James Chen 850efa5eac Merge pull request #3538 from dumganhar/iss2766-memory-leak-develop
closed #2766: Memory leak in the binding glue code of cc.FileUtils.getStringFromFile(getByteArrayFromFile).
2013-09-04 01:42:26 -07:00
James Chen 00c0b94d65 closed #2766: Memory leak in the binding glue code of cc.FileUtils.getStringFromFile(getByteArrayFromFile). 2013-09-04 16:38:07 +08:00
James Chen 80e46dc8c1 Merge pull request #3537 from samuele3hu/TableView
issue #2764:Add TableView lua binding and releated test sample
2013-09-04 00:04:32 -07:00
James Chen 3abfafe4e8 Merge pull request #3535 from CocosRobot/updategeneratedsubmodule_1378260416
[AUTO] : updating submodule reference to latest autogenerated bindings
2013-09-03 23:20:29 -07:00
samuele3hu 32d056df18 Merge branch 'develop' of https://github.com/cocos2d/cocos2d-x into TableView 2013-09-04 14:03:21 +08:00
samuele3hu 6815e01f84 issue #2764:Add TableView lua binding and releated test sample 2013-09-04 14:02:22 +08:00
minggo 9dedb072e6 Merge pull request #3528 from natural-law/ForPlugin
Modify the method cocos_android_app_init()
2013-09-03 22:50:40 -07:00
CocosRobot 0780e90000 [AUTO] : updating submodule reference to latest autogenerated bindings 2013-09-04 02:06:59 +00:00
minggo b419b67001 Merge pull request #3530 from ricardoquesada/sprite_batch_node_perf_improvements
Little performance improvements in SpriteBatchNode
2013-09-03 18:59:21 -07:00
Ricardo Quesada befcf722b6 compiles Linux / Windows 2013-09-03 10:17:25 -07:00
Ricardo Quesada ee638b9c8b removes 'private' section from SpriteBatchNode 2013-09-02 16:56:14 -07:00
Ricardo Quesada 088a11ad0d Little performance improvements in SpriteBatchNode
_descendants: Array -> std::vector<Sprite*> since retain/release is no needed
Code is cleaner
Removes unused method (bug inherited from cocos2d-iphone)
Adds more doxygen strings
2013-09-02 16:44:25 -07:00
zhangbin b854c25103 Add parameter in method cocos_android_app_init() to initialize plugin. 2013-09-02 16:10:08 +08:00
Huabing.Xu 4c12f4029a issue #2460: project template for glfw 2013-09-02 13:48:39 +08:00
minggo bc01e44f06 Merge pull request #3523 from samuele3hu/iss2433-lua-bindings-generator-new
Iss2433: Remoe some functions and files in cocos2dx-support
2013-09-01 20:51:35 -07:00
Huabing.Xu bc5ae78423 issue #2460: change other sample projects to glfw version 2013-09-02 11:46:23 +08:00
samuele3hu 71e0c4064a Merge branch 'develop' of https://github.com/cocos2d/cocos2d-x into iss2433-lua-bindings-generator-new 2013-09-02 10:55:31 +08:00
samuele3hu 6eb5805e33 issue #2433:Remove some functions and files in cocos2dx_support 2013-09-02 10:54:39 +08:00
minggo 04ab331827 Merge pull request #3520 from CocosRobot/updategeneratedsubmodule_1378048657
[AUTO] : updating submodule reference to latest autogenerated bindings
2013-09-01 08:42:07 -07:00
CocosRobot 115debd953 [AUTO] : updating submodule reference to latest autogenerated bindings 2013-09-01 15:17:40 +00:00
minggo 54a5f1e870 Merge pull request #3516 from minggo/perf_addchild_test_fix
Perf addchild test fix
2013-09-01 08:12:24 -07:00
minggo 8e9131c2a2 Merge pull request #3514 from ricardoquesada/spritebatchnode_best_practices
SpriteBatchNode: follows C++ best practices
2013-09-01 07:45:50 -07:00
minggo 2c6665ac3b add missing head 2013-09-01 22:41:11 +08:00
Ricardo Quesada be0c8cb1e8 adds two more perf tests
Node::addChild and Node::removeChild
2013-08-31 17:08:51 -07:00
Ricardo Quesada 0d96a0ce40 resets random seed before each test 2013-08-31 15:49:25 -07:00
Ricardo Quesada b697e2bc99 uses std::sort() by default 2013-08-31 15:37:35 -07:00
Ricardo Quesada d41fdea999 objectComparisonLess -> nodeComparisonLess
and unified it.
No need to have 3 different copies.
The only copy is in CCNode.cpp
2013-08-31 15:18:28 -07:00
Ricardo Quesada 1393fb356a SpriteBatchNode: follows C++ best practices
removes hungarian notation
uses `int` instead of `unsigned int`
Add more asserts
2013-08-31 10:38:10 -07:00
Ricardo Quesada a5e0febc3e Adds better names to test
And new values for get(),add(),remove(),sort(),reorder()
2013-08-31 07:27:56 -07:00