[SDL] embedding resources inside your program

Eddy Cullen eac203 at ecs.soton.ac.uk
Fri May 9 02:40:17 PDT 2008


Not sure about this...

Under Linux (as it has MMIO) it doesn't really matter.

Under Windows though, I think it does - I believe the OS loads the exe 
entirely into memory, so it's gonna kill your start-up times. Any 
Windows Guru got a definitive answer here?

Jitsu Love,

Eddy

Pierre Phaneuf wrote:
> On Thu, Apr 24, 2008 at 3:00 PM,  <neil at cloudsprinter.com> wrote:
> 
>>  sounds that get played randomly ) so i think with that amount of data having
>>  everything in the exe isnt really a great idea, might still do it, not like a
>>  15 meg exe is exactly big these days..
> 
> Well, the important thing is the overall disk footprint, no? A 1 meg
> executable with a 14 megs data file or a 15 megs stand-alone
> executable is pretty much the same, but some people prefer a single
> file for easy of deployment purpose.
> 
>>  and while i have an audience, i am also thinking of having skins for the game,
>>  which would be a zip file containing all the sounds and gfx files, zips stored
>>  in a directory of which the contents are read on program loading, any problems
>>  with the contents of the folder or contents of the zip it just defaults to the
>>  original that are built in the exe file.
> 
> PhysFS could be interesting for that (http://icculus.org/physfs/).
> Never used it myself, but Ryan knows his stuff, usually. ;-)
> 



More information about the SDL mailing list