Large images & rendering

Discussion and feedback on Construct 2

Post » Fri Aug 23, 2013 11:56 am

Margin and layout size don't mean anything for performance (it doesn't matter what their values are at all). Offscreen is meant by anything outside of the game's window (you can't see it while playing basically).

Offscreen may not be rendered by the GPU but they'll still have events run for them (by the CPU). Ashley hasn't done any optimization for the collision checking so doing lots of collision checks on far away objects is a bad idea.alspal2013-08-23 12:08:26
B
134
S
65
G
16
Posts: 1,766
Reputation: 19,190

Post » Fri Aug 23, 2013 7:17 pm

@Asit - Anything outside of the "Window Size" is considered off-screen (found in project properties). You can see a dotted line (you will only see it if your layout size is larger than your window size)

@alspal - this could be huge if there were a way to optimize collision checking for objects on screen. Frame rates in some cases could increase exponentially.
B
22
S
3
Posts: 451
Reputation: 2,135

Post » Tue Sep 10, 2013 12:12 pm

@ome6a1717
@Ashley

I do wish what @alspal said comes true! I have a lot of solid objects off-screen that really kill my frame rates alot! That's why some of my projects aren't completed because of this problem...
B
25
S
6
G
4
Posts: 76
Reputation: 5,163

Post » Tue Sep 10, 2013 12:16 pm

oh wait! I found a solution! Just set "objects" family when (invert)on-screen, object remove collision detection. Then, another event of set "objects" family when on-screen, object enable collision detection! It works perfectly!! I guess it was the lack of my knowledge on C2 :3
B
25
S
6
G
4
Posts: 76
Reputation: 5,163

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: Eisenhans, Elliott, R0J0hound and 13 guests