Commit Graph

354 Commits

Author SHA1 Message Date
Jare Guo ebf7d7d730 register component to scene after ctor (#2661) 2018-05-10 17:00:59 +08:00
Jare Guo 550e85b9e2 update _id management (#2648) 2018-05-09 09:58:51 +08:00
pandamicro 8a92606e29 Fix _id reset issue 2018-05-08 19:05:12 +08:00
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 a0043db9df Small issue fixes (#2617)
* Fix emit event on invalid animation issue

* Support setQuat with x, y, z, w

* Fix native running issue
2018-05-02 15:38:15 +08:00
pandamicro 396154d41b Fix issues (#2608)
* Add missed vec3 APIs

* Fix Node property setter issue

* Fix scene dirty sync issue

* Fix setWorldRot not setting dirty issue
2018-04-27 18:00:48 +08:00
pandamicro 38c61c70b4 Refactor EventTarget: remove hasListenerCache, move dispatch APIs to Node (#2595)
* Improve node property setter performance

* Avoid physics sync trigger events

* Improve callbacksHandler.has performance

* Use flag instead of hasListenerCache in animation state

* Remove hasListenerCache, add event target APIs for dispatch

* Fix some issues

* Fix event target has check

* Expose EventType and LocalDirtyFlag

* Move dispatch related APIs to Node and fix issues

* Refactor event target

* Fix sub listener usage for event target

* Improve code

* Remove callbacksInvoker.has
2018-04-26 21:50:27 +08:00
pandamicro 6bf14fef51 Avoid configurable property and avoid editor issue 2018-04-26 11:32:17 +08:00
pandamicro 4f1f0a7cfb Fix issues 2018-04-26 10:52:46 +08:00
pandamicro 661c5327e7 Tranform properties API polyfill for 3d 2018-04-26 09:35:48 +08:00
pandamicro ef97c6fa2b Support 3d transform with polyfill3d 2018-04-20 00:45:15 +08:00
pandamicro 0f87a11100 Merge pull request #2564 from cocos-creator/optimize
Merge optimizations into next
2018-04-19 18:31:30 +08:00
pandamicro d8ca6001d8 Recursively visit node instead of walk through comp chain 2018-04-19 16:58:44 +08:00
pandamicro 01e6fcf943 Reduce performance.now invocation 2018-04-17 18:31:19 +08:00
pandamicro 14a555e0fb Merge remote-tracking branch 'fireball/master' into next 2018-04-16 19:14:08 +08:00
pandamicro e7a1d59dcc Remove useless typeof check 2018-04-16 16:31:35 +08:00
pandamicro 04e12f4e1d Fix unchainSelf usage 2018-04-12 16:58:51 +08:00
pandamicro 5823a23065 Add transform system to reduce matrix update overhead
Removed world-matrix-changed event, event system is too slow
2018-04-11 14:06:27 +08:00
Jare Guo 0a932aef00 replace all RawAssets with Assets 2018-04-09 14:48:21 +08:00
James Chen fd245aef1f CCProfiler supports all platform now since it's implemented by label atlas. 2018-04-04 17:53:48 +08:00
minggo 02bc807ebf merge and fix conflict 2018-03-30 10:34:50 +08:00
minggo 9568e36ca8 remove duplicate codes 2018-03-28 17:38:55 +08:00
yinkaile 8f9040e7db improve profiler by drawing info in game 2018-03-28 11:33:50 +08:00
minggo d9c0236e50 jsb adapt 2018-03-26 14:54:34 +08:00
minggo 6e37e154f5 JSB adaption 2018-03-26 10:54:09 +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
minggo 0863363f32 merge from h5 2018-03-21 09:56:04 +08:00
pandamicro 9e0c688de7 Cleanup CCMacro 2018-03-19 22:30:52 +08:00
pandamicro 920e4dbfa6 Remove CCPointExtensions 2018-03-19 18:04:55 +08:00
pandamicro 802d57cdac Move affine-transform to utils 2018-03-19 12:33:49 +08:00
pandamicro 2f12aa50d2 Update value type file names 2018-03-16 15:22:02 +08:00
pandamicro 9b7086cab9 Serialize Node._quat 2018-03-15 18:37:56 +08:00
pandamicro aec2aa1884 Fix EVENT_BEFORE_VISIT & EVENT_AFTER_VISIT issue 2018-03-14 14:05:11 +08:00
pandamicro 45b7e033c3 Use lowerCase variable for objects 2018-03-14 13:53:17 +08:00
pandamicro 49fd994035 Move CCTexture2D & CCSpriteFrame to assets 2018-03-13 17:48:38 +08:00
pandamicro b531040ac4 Update licenses 2018-03-13 15:52:14 +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
James Chen 1523d3c91d Update code for creator 2.0 native. 2018-03-12 13:50:50 +08:00
pandamicro 6d6e1206be Cleanup Node APIs 2018-03-09 18:27:56 +08:00
PP 1f448e821f change all JS into js 2018-03-06 11:44:11 +08:00
Jare Guo 5ebcef848c improve test of changing hierarchy during onDisable 2018-03-03 01:46:10 +08:00
Cocos Ass 86cfa26baf forbid Hierarchy change test example
add a  new test in test-component-scheduler.js
forbid Hierarchy change part and example

update data make my local file get reset
forbid Hierarchy change part test example

update a  new test content about setSiblingIndex
change the report of error test
2018-03-02 11:29:39 +08:00
pandamicro afc58eb2a0 Fix global variable leak 2018-02-28 18:21:14 +08:00
Jare Guo 6c809263e6 Merge 1.8 2018-02-24 14:58:57 +08:00
pandamicro ba6e8f11a3 Remove cc._renderType, cc._canvas, cc.container 2018-02-24 11:31:51 +08:00
pandamicro 4aa1cf5b53 Use TextUtils, CustomFontLoader, HtmlTextParser as module 2018-02-12 15:20:24 +08:00
Jare Guo 992b74f0ac merge bricks (#2328)
* support bk game

* update code

* update code

* update code

* update code

* refine code

* update code

* update code

* update code
2018-02-09 10:12:44 +08:00