Is it true that layout size doesn't affect performance?

Discussion and feedback on Construct 2

Post » Sat Mar 01, 2014 11:47 pm

I read somewhere on here that layout size doesn't affect performance? Is this true? So technically we can have a layout of 20,000x20,000 but a small window size of 640x480, the 20000 size alone doesn't slow things down?
B
4
G
1
Posts: 19
Reputation: 353

Post » Sun Mar 02, 2014 12:05 am

If you don't try You'll never know.
You do not have the required permissions to view the files attached to this post.
ImageImageImageImage
B
157
S
66
G
42
Posts: 2,603
Reputation: 35,343

Post » Sun Mar 02, 2014 1:17 am

@rainmaker : Generally - yes, but it depends on a couple factors. The more sprites and tiles you put in a single layout, the more memory that particular layout has to load, which will definitely lessen your performance.
B
40
S
12
G
1
Posts: 532
Reputation: 4,147

Post » Sun Mar 02, 2014 12:20 pm

There is nothing in the engine itself that uses more memory or CPU depending on the layout size, so it's true that the layout size itself has no effect on performance. However if you fill a larger layout with objects, it's more likely to have a lot of objects, and having lots of objects can reduce performance. But in that case it's the object count reducing performance, not the layout size.
Scirra Founder
B
397
S
236
G
88
Posts: 24,420
Reputation: 194,544

Post » Sun Mar 02, 2014 1:05 pm

shinkan wrote:If you don't try You'll never know.

LOL totally downloaded that. It worked smoothly for me!
B
11
S
2
G
1
Posts: 172
Reputation: 1,486

Post » Sun Mar 02, 2014 1:09 pm

Ashley wrote:There is nothing in the engine itself that uses more memory or CPU depending on the layout size, so it's true that the layout size itself has no effect on performance. However if you fill a larger layout with objects, it's more likely to have a lot of objects, and having lots of objects can reduce performance. But in that case it's the object count reducing performance, not the layout size.


yes, I made a test with 20'000 x 20'000 and is working perfectly

another, I'm making game with 8000x 2000, with the same range for 3 tilemap, and 8 layer with 3 background.... and the fps are 61 in iphone5s :D

I suggest to try and look in debug... make a different way is the best method to see which way is better
B
21
S
9
Posts: 298
Reputation: 2,967

Post » Thu Nov 17, 2016 9:33 pm

I just put a huge layout into only 200x200 but margins are 25000 and 25000 (unbounded scrolling: Yes). It seems that strangely layout size does not affect the outcome at all! The little layout dotted line square gets smaller but at least in my game it doesnot have any purpose. I wonder if it makes the game run smoother.
B
29
S
15
G
17
Posts: 137
Reputation: 10,848


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 16 guests