This may not be an issue with SDL, but since I have no way to test it outside of SDL’s environment, I’d like to hear other people’s experience of this issue.
Loading from files in the assets folder (with SDL’s file interface) works like a dream until a single file reachers near to 5mb, then there’s a very noticeable delay of about quarter of a second each time any data is read from the file. The performance hit isn’t graudal; it seems to go from no delay to noticeable delay at about 4.5mb+.
I’ve read that there’s a 1mb limit for asset files, which was resolved to no size limit since Android version 2.3.
Anyone had any similar experience with this or have any idea as to why there’s a performance hit after a certain size?
I can solve this by breaking up data into 1mb segments anyway, but that’s a pain, especially when I shouldn’t need to.
All I can think of is that the assets stored in the .zip are cached when accessed, and Android’s java engine fails to cache zipped files of a certain size, but I can’t find any info about this.