each image is around 25kb
size is 256x256
10 000 images is then 250 Mb
you advice to put them all in memory ?

I would prefer to know a solution that do not use the memory.
today, I use 10k images, but tomorrow, could be more. I actually build
a GPS :/

however, your first advice was also good
http://code.google.com/p/pyglet/issues/detail?id=552
this patch seems to solve my issue
http://code.google.com/p/pyglet/issues/attachmentText?id=552&aid=5520009000&name=pyglet-patch-1.diff&token=AwP5LyBmTET-TwF89K3dlSi8vXw%3A1335270420918

still running to check, but memory is stable now (after 20mn run).

thank you a lot !

On Apr 24, 2:35 pm, claudio canepa <[email protected]> wrote:
> On Tue, Apr 24, 2012 at 9:26 AM, Philippe <[email protected]> wrote:
> > Is there a good way to display 10 000 images ?
>
> Not at the same time of course.
>
> > But one user will see always 10 to 20 images, and they will change
> > every 1s, and be picked from a database of 10 000.
>
> How big each one ?
> 16x16 --> 16*16*10K --> 2.5 MB, should all fit in video memory
> 800*600 -->  4.8GB probably not :-)

-- 
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cocos-discuss?hl=en.

Reply via email to