Commit Graph

115 Commits

Author SHA1 Message Date
pandamicro 50c91c641c Use RenderFlow to optimize renderer visit process (#2634)
* Optimize (#2601)

* support render flow

* small improve

* small improve

* support different vertext format for buffer

* optimize dynamic atlas

* fixed sprite assemblers

* store uvs in spriteframe

* fixed issues

* fixed mask

* remove unused code

* small improve

* small fix

* upgrade assemblers

* refine code

* set id for vertex format name

* Fix mesh buffer initialize issue on native

* Fix spine node setting issue

* fixed dragonbone assembler (#2635)
2018-05-07 15:47: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 e4bdd1edc3 Merge remote-tracking branch 'fireball/master' into next 2018-05-02 16:16:33 +08:00
Jare Guo 542ef017c0 add JsonAsset 2018-04-28 16:17:13 +08:00
pandamicro 0bc8079166 Support serialize & deserialize texture wrap mode & filter 2018-04-24 14:31:12 +08:00
pandamicro 0f87a11100 Merge pull request #2564 from cocos-creator/optimize
Merge optimizations into next
2018-04-19 18:31:30 +08:00
yinkaile 58c87a8d58 fixed issues 2018-04-18 15:49:44 +08:00
yinkaile abc4b0b5da optimize dynamic atlas 2018-04-18 11:36:31 +08:00
yinkaile d07dbc103f optimize dynamic atlas 2018-04-17 18:48:30 +08:00
pandamicro 3ffdf16c61 Fix issues for next merging dev 2018-04-16 19:44:34 +08:00
pandamicro 14a555e0fb Merge remote-tracking branch 'fireball/master' into next 2018-04-16 19:14:08 +08:00
yinkaile 4d8e97a4a9 support mesh sprite 2018-04-10 13:58:31 +08:00
Jare Guo 0a932aef00 replace all RawAssets with Assets 2018-04-09 14:48:21 +08:00
pandamicro 86585d6a01 Explicitly destroy old gl texture before update 2018-04-08 00:40:07 +08:00
James Chen cec6dc4ce1 cc.SpriteFrame undefined on JSB fix. 2018-04-04 17:53:02 +08:00
pandamicro 0fb074ec82 Cleanup old deprecated APIs 2018-03-22 16:58:55 +08:00
Cocos Ass 4ca7a671ce add Chinese note to 2.0 scripts
add Chinese note to 2.0 scripts
2018-03-22 14:42:13 +08:00
pandamicro 427f6ad46a Merge pull request #2461 from pandamicro/hash
Add Material Hash for batch breaking
2018-03-22 12:59:28 +08:00
yinkaile 54fe7164de refine code 2018-03-21 18:35:25 +08:00
yinkaile d718101b3e refine code 2018-03-21 17:28:30 +08:00
pandamicro 9f4a67a6f1 Improve material hash id update and compare 2018-03-21 16:39:36 +08:00
yinkaile b9792bcf19 Merge branch 'next' of github.com:fireball-x/engine into next 2018-03-16 15:15:27 +08:00
pandamicro f86b8609df Fix Texture construction issue 2018-03-16 13:43:29 +08:00
pandamicro 8fb952e0cb Add Texture.getId 2018-03-16 12:00:30 +08:00
yinkaile aff6c7a18d support RenderTexture 2018-03-15 16:52:59 +08:00
pandamicro 9f2f71831c Fix issues with QQPlay platform 2018-03-15 15:48:58 +08:00
pandamicro 49fd994035 Move CCTexture2D & CCSpriteFrame to assets 2018-03-13 17:48:38 +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
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
Jare Guo b31566d75f Merge 1.8 2018-01-09 18:40:43 +08:00
Jare Guo 2e2fd59193 add CC_SUPPORT_JIT macro 2018-01-03 22:58:37 +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 9a758afad1 Merge pull request #2109 from cocos-creator/v1.7
Merge 1.7
2017-11-13 02:50:10 -06:00
Jare Guo bd585d4a5c prefab should be synced if jit can not be used 2017-11-03 01:20:51 +08:00
Jare Guo e3a588169c working on texture 2017-10-29 00:27:42 +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 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 a39f58d916 reviewed 2017-09-22 00:39:45 +08:00
Jare Guo 6ddb0eac7d load texture as url or object and deprecate spriteFrame._textureLoaded 2017-09-18 18:13:23 +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 afabe198a9 support loading texture assets from packs 2017-09-18 18:13:23 +08:00
Jare Guo 40c6f1829b deprecate @property(cc.Texture2D) value = null; in class defined by using ES6 or TypeScript 2017-09-18 18:13:23 +08:00
Jare Guo efa57bb48f make texture as common asset 2017-09-18 18:13:23 +08:00
Jare Guo 5a8fb71683 refine Texture2D (+1 squashed commit)
Squashed commits:
[84eb8b3] refine Texture2D
2017-09-18 18:13:23 +08:00
Jare Guo 200c41a74b should not auto release assets used by persist nodes 2017-08-22 13:58:50 +08:00