[SDL] [OT] Resource file
Mason Wheeler
masonwheeler at yahoo.com
Thu Feb 21 09:20:01 PST 2008
This may be a bit of a n00b question, but when I looked up "mmapping", all the information I found seemed to indicate that it's just a UNIX/Linux thing. Will this be cross-platform?
----- Original Message ----
From: Andre de Leiradella <leiradella at bigfoot.com>
To: sdl at lists.libsdl.org
Sent: Thursday, February 21, 2008 9:13:46 AM
Subject: Re: [SDL] [OT] Resource file
>
[...]
>
>>
But
only
pages
actually
accessed
by
the
application
are
actually
>>
brought
to
RAM
by
the
OS,
right?
Moreover,
the
OS
will
swap
out
>>
pages
to
disk
if
the
application
needs
physical
RAM,
won't
it?
>>
>
[...]
>
>
Yes,
but
physical
memory
isn't
the
problem.
The
application's
address
>
space
is.
All
you
have
is
4
GiB
of
address
space,
some
of
which
is
>
already
reserved
by
the
system
(usually
1-2
GiB,
depending
on
OS),
>
and
the
remaining
2-3
GiB
is
all
you
have
left
for
addressing
memory,
>
VRAM,
memory
mapped
files
and
whatnot.
>
>
Thus,
in
a
32
bit
environment,
you
need
to
"bank
switch"
large
files;
>
ie
map
only
part
of
the
file
at
a
time.
>
So
it
means
I
have
to
mmap
only
pieces
of
the
file
when
af_entry_open
is
called...
Thanks
for
the
info.
Cheers,
Andre
>
>
//David
Olofson
-
Programmer,
Composer,
Open
Source
Advocate
>
>
.-------
http://olofson.net
-
Games,
SDL
examples
-------.
>
|
http://zeespace.net
-
2.5D
rendering
engine
|
>
|
http://audiality.org
-
Music/audio
engine
|
>
|
http://eel.olofson.net
-
Real
time
scripting
|
>
'--
http://www.reologica.se
-
Rheology
instrumentation
--'
>
_______________________________________________
SDL
mailing
list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20080221/75703498/attachment.html
More information about the SDL
mailing list