Thank you sqiddster! :)
Well, as I would like to target mobile platforms, and I predict 50%+ of users in mobile, the simply increase of image sizes could drastically decrease the performance.
Since the topic open I found a theoretical solution:
---------------------------------------------------
- add HQ image versions to sprites as a serarated "HQ" animation
- on start of layout check the window size
- if it larger than the original go trought all image sprites, and set them active animation from Default to HQ
- if it is smaller or equal to the original do nothing
I can imagine an LQ version of images too for small mobiles with 480x320px screen.
I'm sure, that someone here have experiance in what size could be used as the default.
An another question is that what could be the HQ resolution? Do I need to make images for an 1920x1080 or 2560x1600 screen?
Another solution
-------------------------
As an example I found that non-C2 tutorial, where the developer started from 1024x768 and targeted 480x320 to 1280x800px.
The logic behind this is:
Have a Container, what is a Fullscreen and the default size is 1024x768, and have a Vignette Area inside it what is 768 ? 512 in default.
1. At 1024x768 the default layout shown.
2. Screen Height < 512: The Vignette Area is scaled to have 100% of Screen Height, and depending of the ScreenWidth the Container is invisible or visible only in the left and right.
2. Screen Height > 768: The Vignette Area keeps it's original size, but the Container is more visible, it has more space to fill.
This tutorial is 1 year old, and its a long time in App/HTML5... so I'm not shure that its actual now.
Start from small or large?
---------------------------
I used to learn in fluid website layout developement, that we can start from small screen size and if the screen is larger enhance the layout and can start from the biggest and if the screen is smaller de-enhance the layout.
As ranma wrote in the mobile performance tutorial "AVOID sprite resizing and rotation". According to this the perfect way could be to:
- Default screen size is 480x320
- Have prepared image sizes for all sizes: 800x480, 1024x768... 1920x1080.
- Dimanically load/set the image version according to size.
Do you have any tested solution/logic to this?