TransferBoy icon indicating copy to clipboard operation
TransferBoy copied to clipboard

Optimise via code alignment

Open joeldipops opened this issue 6 years ago • 2 comments

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.

joeldipops avatar Jun 16 '19 23:06 joeldipops

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.

joeldipops avatar Jun 17 '19 12:06 joeldipops

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

joeldipops avatar Aug 20 '19 21:08 joeldipops