Are objects deactivated when out of view?

Discussion and feedback on Construct 2

Post » Fri May 11, 2012 1:41 pm

Hello, just really wanted to ask if objects are automatically deactivated\not drawn when outside of the game window or should this be taken care of by the user? Or are they still active\updated but the performance hit is not worth worrying about?

B
35
S
4
G
8
Posts: 65
Reputation: 6,106

Post » Fri May 11, 2012 1:56 pm

As far as I know, objects outside the layout are not drawn but are still processed (logic). If you don't need the object anymore use the behaviour destroy outside layout, or you can do it manually via events if you want more control, with the condition "is outside layout".

If you didn't read the last blog entry then I recommend it:
http://www.scirra.com/blog/83/optimisation-dont-waste-your-timeXavier2012-05-11 13:57:09
B
63
S
23
G
17
Posts: 254
Reputation: 14,342

Post » Fri May 11, 2012 1:58 pm

Yes, I believe objects outside of the game window are not rendered, but logic is still calculated for them.sqiddster2012-05-11 13:58:45
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Fri May 11, 2012 2:13 pm

Thanks for the tips guys.

I did read the last blog but this wasn`t mentioned. It was actually the reason why I brought this topic up actually.
B
35
S
4
G
8
Posts: 65
Reputation: 6,106


Return to Construct 2 General

Who is online

Users browsing this forum: Artpunk and 13 guests