Noob question about layer effects

Discussion and feedback on Construct 2

Post » Sun Apr 05, 2015 8:25 pm

I'm quite seasoned with C2, so i'll be a surprise for you this is coming from me but...

We have 2 layers, layer A has 1 object, layer B has 1000. Both gave "Vibrance" effect applied.

Does the engine use the same amount of resources to apply the effect to both layers? or layer B drains more?


Yes, i'm a nawb, but vote our game anyways if you happen to like it 8-)
http://steamcommunity.com/sharedfiles/f ... =331479068
B
61
S
21
G
4
Posts: 354
Reputation: 6,347

Post » Sun Apr 05, 2015 8:32 pm

it applys effects per layer so having it only on one should be better for performance. i believe there is a manual, blog entry or forum post by Ashley that covers this
B
42
S
17
G
2
Posts: 850
Reputation: 6,209

Post » Sun Apr 05, 2015 8:54 pm

In the manual it says this:

Effects are visually impressive, but can slow down the game's performance considerably if over-used, especially on mobile. Using an effect on objects with many instances is especially slow - often it is much more efficient to place all the objects with the effect on their own layer, then apply the effect to that layer instead. This allows the effect to process everything in one go, rather than having to inefficiently re-run the effect for a small object over and over again.


So, if you put the effect on the layer and not on the object, i think it doesn't matter how many objects are on the layer.
B
11
S
2
Posts: 213
Reputation: 1,266

Post » Sun Apr 05, 2015 9:17 pm

Chupup Games wrote:In the manual it says this:

Effects are visually impressive, but can slow down the game's performance considerably if over-used, especially on mobile. Using an effect on objects with many instances is especially slow - often it is much more efficient to place all the objects with the effect on their own layer, then apply the effect to that layer instead. This allows the effect to process everything in one go, rather than having to inefficiently re-run the effect for a small object over and over again.


So, if you put the effect on the layer and not on the object, i think it doesn't matter how many objects are on the layer.



Thanks!
B
61
S
21
G
4
Posts: 354
Reputation: 6,347


Return to Construct 2 General

Who is online

Users browsing this forum: Darknessed and 8 guests