[SDL] testfile.c not compiling [patch]
Sam Lantinga
slouken at devolution.com
Mon Feb 27 18:18:22 PST 2006
> Do you know if "t" mode is used on other platform? because if not, then using
> "t" with SDL would not be very "portable". But if yes... this would be a "must
> have".
Like "b" mode, "t" mode is silently ignored on other platforms.
> Something I wanted to use: FileMapping. Because this should be really fast, even
> when doing a loop with 1 byte access. Slow file access <=> user waits for a game
> to start :)
> I'm not sure that filemapping can cover all the stdio cases. This is why I
> didn't try it at the first place. If I manage to get some more time, I could try
> a test implementation in 1 or 2 weeks
Even 1 byte reads are probably pretty fast, since I'm sure the underlying
Win32 API does buffering at some level. :)
-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment
More information about the SDL
mailing list