SDL_Surface Size Limit
I read somewhere (I thought it was in the actual SDL docs but apparently I was mistaken) that SDL_Surfaces have size limits. If you assign too much data to them (i.e. load too big of an image) then they sieze up and cause bunches of errors. Is this true? If so what is the limit?
I don't if such a limit exists, but I can happily load a 4.5mb 3900 * 400 BMP and have no issues. :)
Cheers,
Cheers,
I asked a similar question concerning allegro BITMAPs awhile ago. The basic answer I recieved was that if you're going over the size limit, you're probably doing something wrong.
This was brought up on the SDL mailing list somewhat recently in a thread called [SDL] pre-load frames in memory:
Those are pretty big numbers - off the top of my head I can't think of any reason you'd need (or want) surfaces that are larger than 16,000 pixels wide or high
Quote:Btw, note that because SDL 1.x uses 16-bit words for surface width and height, you can't have a surface wider than 16383 pixels, or higher than 65535 pixels. (There's a bug in 1.2.8 that makes the height limit 16383 as well, but Sam's fixed that in CVS).
Those are pretty big numbers - off the top of my head I can't think of any reason you'd need (or want) surfaces that are larger than 16,000 pixels wide or high
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement