Hey!
I'm trying to find the best way to store binary images of resources to make loading as fast of possible.
My resources are all POD (no constructors, no vtables) so I don't have to deal with those cases.
Regarding endianess, my resource compiler converts the data endianess to the endianess of the target platform, so I think I won't need any endianess conversion at runtime (eg: the pc version ships with little endian compiled resources)
My biggest problem is how to deal with x86 and x64 since the pointers on each platform are different sizes.
I store a pointer patching table and the end of each resource, however I want to use the same binary image on both x86 and x64 but structs that contain pointers have different sizes depending on the architecture.
How can I deal with this?
Do you know any tricks?
Thanks.