View the data usage of each Sprite, Background, etc.

Get help using Construct 2

Post » Wed Sep 30, 2015 11:52 am

I opened the program that the image was originally made in, and went to the About/File Properties. It said 800x600 for pixels, and for size it said 705 kb.

In the very program where the image was made, it should show you the actual, real size. It is not compressed when you are editing it. Otherwise, you are editing a compressed image. This is the base image before compression, you are viewing the actual real uncompressed image.

800 x 600 x 4 = 1920000, than why does the file size, under file properties in the editor where this was originally made, show it as 705 kb?

The file properties showed 800 x 600 and a 705 kb file size.
B
20
S
7
G
3
Posts: 302
Reputation: 3,634

Post » Wed Sep 30, 2015 11:57 am

zenox98 wrote:
Phoenixbowman wrote:Both images were the same pixel width and height on the screen, but one was half a megabyte and the other 2.5 megabytes.


What where the original image sizes on import?


The original size was 800 x 600, and in the editor where this file was originally created, the file properties show it as 800 x 600 and 705 kb (kilobytes) in size.

Using the math provided, that would be 800 x 600 x 4 = 1920000.

That is 1920 kb, so 1.92 mb.

So why when i delete it from the game, the total memory usage drops 2.6 mb

1.92, in theory for this image, creates a 2.6 mb drop in the game when it's deleted.
B
20
S
7
G
3
Posts: 302
Reputation: 3,634

Post » Wed Sep 30, 2015 12:00 pm

If there is a way to actually view each images size, in the project, then I can actually look at it. Instead of deleting it and comparing the before and after total project memory size numbers.
B
20
S
7
G
3
Posts: 302
Reputation: 3,634

Post » Wed Sep 30, 2015 12:52 pm

Everything @LittleStain has said about image size in memory is true.

You should realize that all images, regardless of their original 'compressed' form - png, gif, jpeg etc - are held in memory in their uncompressed 32-bit ARGB bitmap format in order to be rendered.

see THIS POST from Ashley.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
131
S
29
G
81
Posts: 5,328
Reputation: 56,630

Post » Wed Sep 30, 2015 4:25 pm

Phoenixbowman wrote:So why when i delete it from the game, the total (ESTIMATED) memory usage drops 2.6 mb

1.92, in theory (theory?) for this image, creates a (ESTIMATED) 2.6 mb drop in the game when it's deleted.


It could even be the estimated memory usage is too low if the sprite is put on a "power of 2"-size texture, which (sometimes?) happens..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Previous

Return to How do I....?

Who is online

Users browsing this forum: stevenode, tarek2 and 8 guests