Webgl On or Off?

Get help using Construct 2

Post » Sat Feb 11, 2017 10:29 am

Sharing a minimal .capx showing the performance difference would be the most useful thing to do here.
Scirra Founder
B
398
S
236
G
88
Posts: 24,441
Reputation: 194,681

Post » Sat Feb 11, 2017 11:55 am

Hi again,
just to do a simple test
is there an action to display memory usage ? i found the cpu usage , fsp but not the memory usage
and is there a way to enable / disable webgl in the app (an action)?
B
46
S
16
G
8
Posts: 794
Reputation: 8,335

Post » Sat Feb 11, 2017 3:31 pm

Ashley wrote:Sharing a minimal .capx showing the performance difference would be the most useful thing to do here.


Hi @Ashley
here it is
2 files .capx (with and without webgl) http://www.filedropper.com/test_179
2 image of the results on real device (with and wihout webgl)
Image
Image

Devices : iPhone 4s iOS 9.1, iPhone 5 iOS 10
Wkwebview : enabled
Last edited by matrixreal on Sat Feb 11, 2017 4:36 pm, edited 1 time in total.
B
46
S
16
G
8
Posts: 794
Reputation: 8,335

Post » Sat Feb 11, 2017 4:35 pm

Ashley wrote:Sharing a minimal .capx showing the performance difference would be the most useful thing to do here.



Hi @Ashley I cleaned up a little bit the code and here is a simple capx: consumes less resource but still, you can see the difference

https://www.dropbox.com/s/25g7jtsnrf9572z/test%20car2.capx?dl=0


I'm only testing on iPhones I haven't got any android phone to test the difference:

after I cleaned up a lot of code this is the result I still get on iphone 6:


with WebGL On : cpu= up and down from 30% to 90% ----------and-------------Fps: from 50 to 60


with WebGL Off : cpu= stable around 24% never goes up than 24 ----------and-------------stable 60


Thanks Ashley
B
39
S
22
G
78
Posts: 291
Reputation: 43,198

Post » Sat Feb 11, 2017 4:53 pm

matrixreal wrote:
Ashley wrote:Sharing a minimal .capx showing the performance difference would be the most useful thing to do here.


Hi @Ashley
here it is
2 files .capx (with and without webgl) http://www.filedropper.com/test_179
2 image of the results on real device (with and wihout webgl)
Image
Image

Devices : iPhone 4s iOS 9.1, iPhone 5 iOS 10
Wkwebview : enabled



Hi @matrixreal Thanks for the test capx, I'm glad that I'm not the only one that has this problem, this is what I get on my test:

Web gl OFF: [url]Image[/url] [img]https://www.dropbox.com/s/ps9objexa4zu7pd/offf.PNG?dl=0
[/img]

Web GL On: [url]Image[/url]
Image
B
39
S
22
G
78
Posts: 291
Reputation: 43,198

Post » Sat Feb 11, 2017 6:17 pm

Burvey wrote:In the debugger make sure you're not in Inspect mode as you will get inaccurately high CPU readings. Watch or Profile mode should yield more accurate results.


Thank you
B
39
S
22
G
78
Posts: 291
Reputation: 43,198

Post » Sat Feb 11, 2017 9:10 pm

@ashley
@tarek2
on desktop browser webgl is much faster than canvas2d (x10 faster)
but on ios mobile i did the test with cordova and get those results
sad :(
B
46
S
16
G
8
Posts: 794
Reputation: 8,335

Post » Sat Feb 11, 2017 10:45 pm

matrixreal wrote:@ashley
@tarek2
on desktop browser webgl is much faster than canvas2d (x10 faster)
but on ios mobile i did the test with cordova and get those results
sad :(


@matrixreal yep the same here on laptop browser webgl on is faster than canvas2d

but on ios is the opposite
B
39
S
22
G
78
Posts: 291
Reputation: 43,198

Post » Sat Feb 11, 2017 10:55 pm

I had the same problem before only with 3 objects and plataform behaivor with webgl on the cpu was up and down from 20% to 60%

and with webgl off it was no more than 13% cpu

here is the link: https://www.scirra.com/forum/viewtopic.php?f=147&t=183737

tested only on iphones not android
B
39
S
22
G
78
Posts: 291
Reputation: 43,198

Post » Sun Feb 12, 2017 11:39 am

@ashley
any news ? suggestions ?
B
46
S
16
G
8
Posts: 794
Reputation: 8,335

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: ametueraspirant, dand, jatoblendy, mickclarke and 27 guests