TransferBoy
TransferBoy copied to clipboard
Optimise via code alignment
Using particular compilier flags and directives should help speed up critical code by a frame or two. Need to do a bit of research on this, but can play around with the various flags and see what changes to start with.
Using the -Os gave me a beautiful perf increase, I can only hope that fiddling with other flags in a more finely grained way can give me even more.
you might be able to specify linker sections in the function prototypes, to make GCC stick them in certain regions then you could manually create sections inthe linkerfile that are aligned to the cache boundary ps2's gb emu is rsp/rdp accelerated normally, the linker mashes function code together. but if you tell it explicitly where to put stuff, you can contorl that