Image resolution

Discussion and feedback on Construct 2

Post » Wed Jan 04, 2012 7:29 pm

If I have png files that are 256 color. Will it have improved performance in my game?

I am going through the Beginner Tutorial. Excellent so far, but I noticed that sometimes it's a bit jumpy and the scrolling is not butter smooth. I understand that this is a limitation of HTML5 canvas, so it's not Construct 2.

I was wondering, if lower image resolutions can make a difference in the long run, or do the images have a standard conversion they gor through. I use IE9 and I have 16GB memory, so I have plenty to work with as far as the browser is concerned.
B
1
G
1
Posts: 4
Reputation: 433

Post » Wed Jan 04, 2012 7:38 pm

This blog article about image compression in C2 is probably an appropriate ressource for you to check.
Let us know if you still have doubts afterward ?

Also the jumpyness you experiment is probably due to the fact that IE9 does not support webGL and thus only renders in canvas as you mentionned.
I suggest you to also install and try chrome and firefox (as secondary browsers) to test your games. You might be surprised in the end by the results.

Also make sure that your graphic card drivers are up to date.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Wed Jan 04, 2012 7:58 pm

Oh wow, I did not know about webGL. I will try chrome immediately. Thanks.
B
1
G
1
Posts: 4
Reputation: 433

Post » Wed Jan 04, 2012 8:03 pm

Yes, no jumping in Chrome.

To recap my first question then, will 256 color images also make a difference?
B
1
G
1
Posts: 4
Reputation: 433

Post » Wed Jan 04, 2012 8:54 pm

It wont change the the jumping, etc. The main use is to reduce the size of the file.
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Wed Jan 04, 2012 8:59 pm

Newt's right, file size of the image wont have any noticeable impact on performance at all. All it does is mean the game will load faster. 256 colour PNGs (AKA PNG8) usually will come out very small in file size as Construct 2 uses PNGOut.

Filesize is an important consideration if making a game for mobiles for example as they are usually on much slower networks than you would find on a PC.Tom2012-01-04 21:00:24
Image Image
Scirra Founder
B
125
S
37
G
25
Posts: 3,945
Reputation: 44,922

Post » Wed Jan 04, 2012 11:45 pm

Just to recap, all images are basically decompressed to bitmap in memory for rendering, so the image format/size has no effect on performance.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,590


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 2 guests