The main changes are in the xrender loops not re-getting the vertex structure, in the controller code, instead of mapping the CONT_ values to the pad values, I changed the pad values to match the CONT_ values and just straight copy buttons to pad[] - also changed the code not to look for new devices each time (single initialised dev[] array).
I also changed the xrender stuff to use the TR rather than the PT list - not sure why they were being separated.
Plus loads of other tweaks and fiddles (shifts instead of multiplies, only performing arithmetic operations once where possible etc).
My current dc_options are:
Code: Select all
options_t dc_options =
{
0, /* Frameskip */
487, /* M68k clock speed */
228 /* Z80 clock speed */
};
It struck me that I may well be using different KOS_CFLAGS to you guys... I'll show you mine (if you show me yours)...
Code: Select all
KOS_CFLAGS='-O3 -fomit-frame-pointer -ml -m4-single-only fno-optimize-sibling-calls -D_arch_dreamcast -D_arch_sub_pristine -Wall -g fno-builtin -fno-strict-aliasing'