http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

TheGrumpyProgrammer



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gameprogrammer] Re: memory management in a game with LOTS of art



On Sun, 2004-07-04 at 11:47, Alan Wolfe wrote:
> what do you think about vram usage?
> 
> he was thinking (in windows) of using vram to cache stuff in but have no
> idea if theres a way to manualy allocate that or if thats a good idea, or in
> any way cross platform.
> 
> he was just noticing a similar type of game called nexus has like 80 megs of
> art but only uses 20 megs of ram (with 30 megs of virtual ram).
> 
> any clue on vram? (:

The cache could be simple hardware surfaces, like DX surfaces allocated
in VRAM (I have no idea how DX works these days, no examples here), or
SDL_HWSURFACEs. That is, ready-to-be-used datastructures in need of no
more processing before actual use.

Maybe Nexus has this type of proxy implemented? =)

--
Petri Latvala




---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html