Question about large images & performance.

Discussion and feedback on Construct 2

Post » Sun Nov 27, 2011 2:51 am

Due to the inability to create my own level editor at this time, I've resorted to using Tiled and exporting the levels as large images. I then place collision tiles and such in C2's layout editor.

My question is, what's the max image size I should be going for? I don't have any old computers or cheap laptops to test these out on, so I'm kind of in the dark here. I'm just worried they will cause some performance issues.

My largest level image as of yet is 4096x224, but I plan to make some larger ones. What do you think is a reasonable limit?
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Sun Nov 27, 2011 5:06 am

Hi Tokinsom,

I have two levels with background images each at 3066 x 767 pixels, plus
a smaller Title and End background, all png files(thats all image types available at the moment).On my server it takes 45 seconds for a new load. Loading Construct 2's Space game it takes 35 seconds to load, new start.

I don't know whether this is exceptable or not in gaming circles.

If I could have used jpg files, I would have cut the background file sizes by two thirds, hoping for this file type soon.


B
4
S
1
G
2
Posts: 45
Reputation: 1,365

Post » Sun Nov 27, 2011 5:08 am

Having a lower end PC would make you the perfect test subject for your game. Just grab a png graphics and load it in at the proper resolution. Then set up a small physics test, checking the performance.

Keep adding levels using the same physics test and note the performance.

This test will rapidly tell you if your project is feasible

Best of luck!


B
28
S
8
G
8
Posts: 530
Reputation: 7,154

Post » Sun Nov 27, 2011 6:34 am

you can save filesize by saving as a 8bit png, it does give up some quality depending on the colorpalette
ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028

Post » Sun Nov 27, 2011 2:20 pm

Old or weak graphics cards have a limit on the maximum size of the texture you can use. This is a bigger problem on mobiles which tend to have more limited GPUs.

I would say 4096x4096 is the absolute largest you should even consider, and that's probably already beyond what some mobiles can manage. To be on the safe side I would advise cutting everything up in to 1024x1024 max tiles.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Sun Nov 27, 2011 2:53 pm

Ok I can do that. Thanks!
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024


Return to Construct 2 General

Who is online

Users browsing this forum: DankP3, NetOne and 0 guests