I have some questions about effects...

Discussion and feedback on Construct 2

Post » Thu Jul 07, 2016 4:47 pm

Ashley wrote:Answer your own performance questions with measurements

although I will add:
- there's no official behavior that can change the color of an object, I guess you're looking at a third-party addon?
- if you have a lot of objects and many overlap, applying the effect to the whole layer can be faster, since it only processes everything once. Otherwise overlapping areas are processed more than once. On the other hand if you only have one or two small objects, it would be a waste to apply the effect to the whole layer, since it will have to process a larger area than necessary.


Hum, i got it! But, i don't know one thing... The WebGL shade effects like "setHLB" will run one time (will run the script one time to change the sprite color) or will run everytick (every step)? :?:
B
14
S
6
G
2
Posts: 81
Reputation: 2,241

Post » Fri Jul 08, 2016 10:26 am

All WebGL shaders run every time the image is drawn, usually every frame.
Scirra Founder
B
402
S
238
G
89
Posts: 24,644
Reputation: 196,095

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 3 guests