[AC-4372] Windows: terrible performance of opening new screen
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-08-29T15:58:54.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Zakhar Zhuravlev |
Assignee | Shak Hossain |
Created | 2016-08-24T08:58:41.000+0000 |
Updated | 2016-08-29T15:58:55.000+0000 |
Description
Creating and opening new screen takes a lot of time. Exactly - creating structure of screen. I want to provide my example.
*index.js:*
function onUpdate() {
var win2 = Alloy.createController('test', {
start: (new Date()).getTime()
}).getView();
win2.open();
}
$.win.open();
*index.xml:*
<Alloy>
<Window id="win" backgroundColor='black'>
<Button width='100dp' height='50dp' bottom="50dp" backgroundColor='red' onClick='onUpdate' />
</Window>
</Alloy>
I attached test screen (real, but a bit cutted, screen from real app), and app.tss file.
Example is simple. Just tap on red button on index screen and observe how long will take opening test screen.
For my device it takes 2 seconds!! If tap on back button and open screen again than it;s taking 1,5 seconds. It's absolutelly terrible performance.
Attachments
File | Date | Size |
---|---|---|
app.tss | 2016-08-24T08:55:14.000+0000 | 6057 |
test.js | 2016-08-24T08:54:49.000+0000 | 301 |
test.tss | 2016-08-24T08:54:58.000+0000 | 6472 |
test.xml | 2016-08-24T08:55:06.000+0000 | 2417 |
with 6.0.0.v20160825201507 it becames much much much better. Almost comparable with android and ios!
Thanks for letting us know. Closing the ticket.