Commit Graph

144 Commits

Author SHA1 Message Date
Jare Guo f8d38f4adf optimize construction and serialization performance for wechat mini games (#2970)
* optimize instantiate for platform whose CC_SUPPORT_JIT disabled

* optimize instantiate for platform whose CC_SUPPORT_JIT disabled

* optimize object construction for platform whose CC_SUPPORT_JIT disabled

* optimize deserialization for platform whose CC_SUPPORT_JIT disabled
2018-07-13 10:48:17 +08:00
Jare Guo 3d5e88d2c1 optimize performance of object construction on wechat platform (#2965)
* optimize destruct for platform whose CC_SUPPORT_JIT disabled

* define __values__ to replace __props__ used in serialization
2018-07-11 16:25:02 +08:00
pandamicro 1f39837ac1 Remove cc.Class.isInstanceOf usage (#2877)
* Remove cc.Class.isInstanceOf usage

* Remove check jsb instanceof task
2018-06-19 17:54:48 +08:00
pandamicro e597e34f4f Remove __instanceId from Node and Component (#2627)
* Add Scheduler.enableForTarget and change to use  _id

* Use _id instead of __instanceId in Texture2D

* Fix ParticleSystem __instanceId usage

* Use _id instead of __instanceId in ActionManager

* Fix usage of Scheduler in InputManager

* Use _id instead of __instanceId in EventManager

* Totally remove ClassManager and __instanceId

* Fix initialization process

* Fix touch & mouse listener off check issue

* Fix id not generated issue

* Fix touch & mouse listener being removed by rejected persist node

* Improve logic
2018-05-04 13:51:21 +08:00
pandamicro 14a555e0fb Merge remote-tracking branch 'fireball/master' into next 2018-04-16 19:14:08 +08:00
Jare Guo 0a932aef00 replace all RawAssets with Assets 2018-04-09 14:48:21 +08:00
Jare Guo 3210895e46 Merge 1.9
# Conflicts:
#	cocos2d/core/CCGame.js
#	cocos2d/core/load-pipeline/pack-downloader.js
#	cocos2d/core/platform/CCObject.js
2018-03-22 13:45:42 +08:00
PP 74fa58895e optimize getComponent performance
optimize getComponent performance


optimize getComponent performance


optimize getComponent performance
2018-03-21 18:41:06 +08:00
pandamicro 45b7e033c3 Use lowerCase variable for objects 2018-03-14 13:53:17 +08:00
pandamicro 77febbfe3d Merge branch 'master' into next 2018-03-13 15:07:21 +08:00
pandamicro ba05646469 Refactor cc.isChildClassOf to cc.js.isChildClassOf 2018-03-12 17:50:26 +08:00
PP 1f448e821f change all JS into js 2018-03-06 11:44:11 +08:00
pandamicro 14dab8735f Remove _CCClass and all cc._Class usage 2018-02-13 12:36:56 +08:00
Jare Guo a6fb92ad90 updating license 2018-02-01 09:38:54 +08:00
Jare Guo bd15543093 updating license: Chukong Aipu -> Xiamen Yaji 2018-01-31 17:51:49 +08:00
knoxHuang 8d79cb338f fix __ctor__ api for fireball/issues/6806 2018-01-11 10:00:53 +08:00
Jare Guo b31566d75f Merge 1.8 2018-01-09 18:40:43 +08:00
Jare Guo df36e5dc9c Merge branch 'v1.8-release' into v1.8 2018-01-09 18:25:55 +08:00
knoxHuang d05ffd3b53 fix __ctor__ api for fireball/issues/6806 2018-01-09 09:50:33 +08:00
Jare Guo 2e2fd59193 add CC_SUPPORT_JIT macro 2018-01-03 22:58:37 +08:00
Jare Guo d6f4918e38 reviewed 2018-01-03 14:31:47 +08:00
Jare Guo 298ab19d19 fix bug of asset type on JSB 2018-01-03 11:07:45 +08:00
Jare Guo b254c4991b add prefab option to optimize instantiation 2017-12-24 00:22:40 +08:00
Jare Guo 7834448133 Merge branch 'v1.7'
# Conflicts:
#	cocos2d/core/load-pipeline/loader.js
2017-12-13 14:44:33 +08:00
Jare Guo f31830e574 fix api 2017-12-08 16:11:57 +08:00
Jare Guo 23f0cb4a6b Merge master into asset
# Conflicts:
#	cocos2d/core/load-pipeline/CCLoader.js
#	cocos2d/core/platform/deserialize.js
#	gulpfile.js
#	jsb/jsb-loader.js
2017-10-23 18:00:20 +08:00
yinkaile dc7ae7fc8f refine code 2017-10-20 09:29:45 +08:00
yinkaile 62841321a5 fallback function if not support Function 2017-10-19 17:32:03 +08:00
Jare Guo 64c13c7dab sync jsb 2017-09-23 09:02:13 +08:00
Jare Guo 301f4e709a refactoring API of cc.Asset: rawUrl -> nativeUrl, _rawFile -> _native, _setRawFile(s) -> _setRawAsset, rawType -> _nativeObject 2017-09-18 18:13:23 +08:00
Jare Guo 47dc522e92 support formerlySerializedAs attribute 2017-08-31 12:27:49 +08:00
Jare Guo f81b0ba77b check if user overwrite destroy in component unexpectedly 2017-08-08 16:54:37 +08:00
pandamicro 6533180e9d Remove ...args in engine 2017-07-26 18:03:58 +08:00
Jare Guo 26e5e23631 make code more concise by using regexp 2017-07-14 16:58:16 +08:00
Wang Nan 40eceb7590 Merge pull request #1763 from cocos-creator/v1.5
merge V1.5
2017-06-27 11:51:18 +08:00
Jare Guo 01b18fd269 fix api link 2017-06-23 14:58:27 +08:00
Jare Guo d936b9628b fix CC_DEV in build worker 2017-06-21 17:34:17 +08:00
Jare Guo fbb31cbe4c fix api doc for loader.getDependsRecursively 2017-06-12 11:52:11 +08:00
Jare Guo 7f79e0d8f7 remove eval 2017-05-26 11:52:10 +08:00
Jare Guo 4393080acf refine creator.d.ts 2017-05-17 10:55:03 +08:00
Jare Guo d187f903e4 refine cc.Enum 2017-05-16 14:31:41 +08:00
Jare Guo 713126f51e optimize instantiate 2017-05-12 17:11:31 +08:00
Jare Guo 8f831af4d3 reviewed 2017-05-10 01:00:20 +08:00
Jare Guo 0c26addab6 fix ES6 Classes on JSB 2017-05-09 15:04:48 +08:00
Jare Guo ff6dd78d2a fix typescript on JSB 2017-05-08 15:03:05 +08:00
Jare Guo 830b51d9bd should not skip onLoad when previous sibling node is deactivated 2017-05-05 18:07:02 +08:00
Jare Guo e3c926cc7d fix inspector 2017-05-05 15:20:14 +08:00
Jare Guo 633e976f69 optimizing startup time by reusing property descripter 2017-05-05 13:37:03 +08:00
Jare Guo 65a3f04796 optimizing startup time 2017-05-05 13:37:03 +08:00
Jare Guo 5757403b95 fix cc.Integer 2017-04-27 16:14:58 +08:00