Hacker News new | ask | show | jobs
by kimixa 1731 days ago
I think the parent is saying that the jpeg will need to be stored uncompressed in ram - likely in exactly the same format as the bmp is stored in memory - for the graphics system to actually render it out to screen. Not that any "extra" cost of a BMP would be trivial.

So, after they're loaded and (possibly) scaled to fit the screen, I'd expect every background image to use exactly the same memory amount.

1 comments

> So, after they're loaded and (possibly) scaled to fit the screen, I'd expect every background image to use exactly the same memory amount.

Well, not centered or tiled backgrounds, which I recall Windows did support, and upscaling could be done on a per-pixel basis (although I don't know if that was supported), but yes, the image format shouldn't matter.

I don't know the implementation details - but I wouldn't be surprised if it kept a full-screen-size already-scaled/tiled/centered image somewhere in memory

Back when win95 and co were being made, decoding an image was a lot of work for the hardware, I suspect they'll try to make restoring the background (e.g. dragging a window around and changing what's occluded) to be the simplest bitblt they can.