dynamic scaling vs sprite sheets, outdated corona blog page?

@ http://www.coronalabs.com/blog/2011/01/27/dynamic-image-resolution-made-easy/

says that:

The display.newImageRect() API is separate from sprite sheets, and does not affect them. This is because sprite sheets are a special case: they’re a method for conserving texture memory by allocating large shared images at the maximum possible size available on the hardware. For most mobile hardware, the largest image size is 1024 x 1024 (or 2048 x 2048 on the iPhone 4 and iPad). A sprite sheet cannot simply be doubled in size, and generally it can’t be increased in resolution at all, without exceeding the hardware limitations on many devices.

Also, due to the cruel mathematics noted above (2x resolution equals 4x memory used), a game that uses sprite sheets to push the graphics memory envelope on a low-end iPhone can’t be globally asset-doubled on the iPhone 4. Finally, Android devices have no reliable correlation between screen size and available texture memory, since these details are freely chosen by individual hardware manufacturers. There is no way to abstract away all of these hardware considerations without severely limiting you at the high end.

DOES IT MEAN we cant use dynamic scaling with sprite sheets?

Thank You.

Hi @aclk,

That document you’re reading is very old, and I would not consider all of the information within valid.

The answer is, YES, you can use dynamic scaling with sprites. It’s just calculated (by Corona) using the “sheetContentWidth” and “sheetContentHeight” parameters in the image sheet setup.

Here are some more current guides that should clarify this for you:

http://docs.coronalabs.com/guide/basics/configSettings/index.html

http://www.coronalabs.com/blog/2012/10/02/animated-sprites-and-methods/

http://www.coronalabs.com/blog/2013/05/14/sprites-and-image-sheets-for-beginners/

Take care,

Brent

Hi @aclk,

That document you’re reading is very old, and I would not consider all of the information within valid.

The answer is, YES, you can use dynamic scaling with sprites. It’s just calculated (by Corona) using the “sheetContentWidth” and “sheetContentHeight” parameters in the image sheet setup.

Here are some more current guides that should clarify this for you:

http://docs.coronalabs.com/guide/basics/configSettings/index.html

http://www.coronalabs.com/blog/2012/10/02/animated-sprites-and-methods/

http://www.coronalabs.com/blog/2013/05/14/sprites-and-image-sheets-for-beginners/

Take care,

Brent