glass effect so heavy

Get help using Construct 2

Post » Mon Dec 09, 2013 4:11 pm

Please take a look at my capx
https://www.dropbox.com/s/o8qn64a499pg4n7/gls.capx

Why glass effect so heavy? I mean that when i play this capx on my iphone 5 (Cocoon launcher) it gives 30!!! fps game becoming very slow, after destroying a few glass block fps gets normal 60 fps. There ONLY ten blocks.
My game supose to be with 30-40 bloks or more.
Without glass effect everything good 60fps.
Image
B
14
S
6
G
5
Posts: 99
Reputation: 3,825

Post » Mon Dec 09, 2013 4:33 pm

Instead of putting the effect on each object, try to put the effect on a layer, and place your objects on that layer.
B
19
S
5
Posts: 80
Reputation: 1,383

Post » Mon Dec 09, 2013 4:44 pm

What narFsnw said, apply effect on layers if you're gonna have multiple objects with the same effect. Not only it will be probably better performance wise, it will be easier to manage. And Yes, this kind of webGL effects (with transformations, not just altering the color output) are a bit too heavy for mobile devices, when supported. Try to keep their usage as low as possibleOlivierC2013-12-09 16:44:53
B
12
S
5
G
2
Posts: 132
Reputation: 2,627

Post » Mon Dec 09, 2013 5:04 pm

@OlivierC
@narFsnw
sorry i'm not understood how to implement it.
Please could you show how to do it on my capx?
Image
B
14
S
6
G
5
Posts: 99
Reputation: 3,825

Post » Mon Dec 09, 2013 5:10 pm

Put all your glass objects on a seperate layer. set that layer's effect to glass and remove the glass effect from your objects. Everything on the layer will be rendered in glass effect, so the effect will not be necessary on the separate objects.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Dec 09, 2013 5:42 pm

Yeeees! It's working! Now i learned new thing about construct.
It looks absolutely the same way and now fps 60. Amazing.

One more quick question how to apply some color to cubes and how to make not so transparent?
Image
B
14
S
6
G
5
Posts: 99
Reputation: 3,825


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, ST314, TheRealDannyyy, tunepunk and 34 guests