Web preview vs compiled game

Discussion and feedback on Construct 2

Post » Mon Jul 08, 2013 2:17 pm

Hello,

My preview on iPhone5 works smooth (60fps) but on iphone4S i have drop to 15fps.
So, my question is how much is a difference in performance between web preview and real compiled game? Does compiled game works better than preview in browser?

Thanks!

B
26
S
11
G
2
Posts: 669
Reputation: 5,038

Post » Mon Jul 08, 2013 2:34 pm

I dont know in iphone, but in android compiled is much faster than preview.
B
32
S
7
G
2
Posts: 164
Reputation: 3,774

Post » Mon Jul 08, 2013 2:34 pm

Well with cocoonJS offering webGL support (coming soon to apple as soon as it is approved) the compiled app might execute smoother than in browser.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
289
S
112
G
94
Posts: 7,333
Reputation: 69,287

Post » Mon Jul 08, 2013 2:36 pm

It depends how you compile the game. Which platform are you using?

When exporting, you get the export-time optimisations which don't happen in preview. It also removes a few debug checks at export-time which can slightly improve Javascript performance sometimes.
Scirra Founder
B
395
S
231
G
88
Posts: 24,367
Reputation: 193,694

Post » Mon Jul 08, 2013 2:43 pm

I was considering to use CocoonJS.
B
26
S
11
G
2
Posts: 669
Reputation: 5,038

Post » Mon Jul 08, 2013 2:51 pm

When I previewed over LAN on:
2x Iphone 4S'
1x Ipad 3rd gen
1x Samsung Galaxy S2
1x Dell Laptop

I got smooth on laptop, Ipad but naff FPS on Galaxy and both Iphones. These were previewing through 'Chrome' on all devices.


After compiling with CocoonJS it was SUCH an improvement. Couldn't be happier (I think ;])
B
20
S
7
G
4
Posts: 322
Reputation: 4,521

Post » Mon Jul 08, 2013 3:24 pm

Preview has a lot of debug overhead.
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,583

Post » Mon Jul 08, 2013 3:49 pm

great news, thank you all.
B
26
S
11
G
2
Posts: 669
Reputation: 5,038

Post » Mon Jul 08, 2013 7:35 pm

[QUOTE=Sulli] When I previewed over LAN on:
2x Iphone 4S'
1x Ipad 3rd gen
1x Samsung Galaxy S2
1x Dell Laptop

I got smooth on laptop, Ipad but naff FPS on Galaxy and both Iphones. These were previewing through 'Chrome' on all devices.


After compiling with CocoonJS it was SUCH an improvement. Couldn't be happier (I think ;])[/QUOTE]

Safari is way faster than chrome on iOS, because as far as I understand it, chrome just uses the web view (which doesn't use nitro which speeds up JavaScript) because apple doesn't allow the technologies needed for a competing browser to be used in apps on the App Store. It's why there's no Firefox for iOS.Arima2013-07-08 19:36:39
Moderator
B
94
S
33
G
33
Posts: 3,006
Reputation: 27,749


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 6 guests