Commit Graph

43 Commits

Author SHA1 Message Date
pandamicro a0091761da Sync world mat dirty to ensure mat dirty flag reliable 2018-04-12 11:37:52 +08:00
pandamicro c5b586c5d7 Fix old parent chain issue 2018-04-11 20:10:24 +08:00
pandamicro 3dcaf19376 Visit render component with chain instead of walking scene graph 2018-04-11 14:16:36 +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
yinkaile 0d5b02ac2a refactor sprite assembler to optimize performance 2018-03-23 15:42:16 +08:00
pandamicro 9324deb7f7 Simplify stencil manager 2018-03-21 17:07:50 +08:00
pandamicro 9f4a67a6f1 Improve material hash id update and compare 2018-03-21 16:39:36 +08:00
fusijie 10f56b59bd add_effect_hash 2018-03-21 16:39:36 +08:00
pandamicro a0c833263d Compare material instead of effect in walker 2018-03-16 09:58:16 +08:00
pandamicro b531040ac4 Update licenses 2018-03-13 15:52:14 +08:00
yinkaile efb8e24f23 revert code 2018-03-09 18:19:38 +08:00
yinkaile af5930f343 Merge branch 'next' of github.com:fireball-x/engine into next
# Conflicts:
#	cocos2d/core/renderer/render-component-walker.js
2018-03-09 16:14:54 +08:00
yinkaile 22a1e2994a 1. support camera sort
2. support camera culling mask with node group
3. add MAIN_CAMERA to Canvas
2018-03-09 16:12:00 +08:00
pandamicro 3358b71f79 Improve batchData content setting 2018-03-07 10:41:11 +08:00
pandamicro 7618f9eec5 Walker support custom IARenderData 2018-03-06 09:35:41 +08:00
pandamicro 8e29b6b450 Use pow2 buffer size to avoid frequent size change 2018-03-02 18:43:35 +08:00
pandamicro f7baf9a73a Use single buffer instead of multiple buffer 2018-03-02 16:46:18 +08:00
yinkaile a676485c68 fixed cameras 2018-02-09 11:37:43 +08:00
yinkaile cf3f20bfc2 upgrade CCCamera 2018-02-08 18:07:43 +08:00
yinkaile f1e2481a4b Merge branch 'next' of github.com:fireball-x/engine into next
# Conflicts:
#	cocos2d/core/renderer/index.js
2018-02-08 10:47:29 +08:00
pandamicro 8c9f214346 Update vb & ib in walker 2018-02-08 00:28:44 +08:00
yinkaile d93cf3acac support camera 2018-02-07 10:59:23 +08:00
pandamicro dfb6b73e85 Fix stencil manager modify user effect issue 2018-01-31 18:45:44 +08:00
yinkaile 8c18b5efa6 small fix some problems 2018-01-16 17:55:13 +08:00
pandamicro 2d0435db12 Fix issue caused by render data effect absent 2018-01-12 17:38:38 +08:00
pandamicro 2331c1f741 Fix byteOffset calculation based on the current vfmt
It should be incremented during batching process and store into batchData
2018-01-12 12:38:22 +08:00
pandamicro e64365bf33 walker updateRenderData with _batchData
Update render engine
2018-01-05 16:54:16 +08:00
pandamicro 13a4dc7e50 Walker supports multiple render data per component 2017-12-29 01:26:30 +08:00
pandamicro 226039e41b Fix node not restored to dummyNode in walker 2017-12-25 17:23:53 +08:00
pandamicro 706f637b34 Add useModel to assemblers, use comp.node as model 2017-12-25 14:34:35 +08:00
pandamicro 49bf5d6eaf Support Mask in new renderer 2017-12-14 17:23:23 +08:00
pandamicro 50446fa3a6 Add render component post handle support 2017-12-10 22:28:43 +08:00
pandamicro f73721c246 Oops, previous PR doesn't improve performance after all 2017-12-08 16:34:26 +08:00
pandamicro 521ba0c84a Fill data in batchQueue, much faster in v8 2017-12-08 16:00:10 +08:00
pandamicro c365467fb0 Fix issues after rebase 2017-12-07 12:41:14 +08:00
pandamicro 615a8f0645 Refactor render component process, fix jit deopt 2017-12-07 12:03:58 +08:00
pandamicro ab619b4c00 Use walk to collect render component in array 2017-12-07 11:52:20 +08:00
pandamicro 33b6025b42 Move batch fill logic into _handleRender 2017-12-07 11:52:20 +08:00
pandamicro 0acf5b26b7 Ping pong buffers in render component walker 2017-11-30 18:43:08 +08:00
pandamicro faa6a3baa9 Use unified buffer instead of shared array buffer 2017-11-29 18:25:13 +08:00
pandamicro 8051f63b2c Fix wrong vertex/index count after breaking batch 2017-11-29 16:03:11 +08:00
pandamicro 27d797f108 Fix running in editor issue 2017-11-29 15:37:43 +08:00
pandamicro a6a294f538 Major refactor to use render component walker for batching models 2017-11-29 13:55:36 +08:00