Franxis
MAME 4 ALL
Hi everyone,
I'm investigating ways to improve the speed of my MAME port for GP32.
One critical part is the video output function. It has to extract a part of a big VGA style video buffer and output it to a GP32 video buffer (320x240).
I have seen xlatgp32 that is done in ARM ASM but it is not useful for MAME because this function needs the origin VGA video buffer to be in 320x240 resolution. In MAME the origin video buffer has bigger resolution. Also another problem is that i need the posibility of rotating the image.
In example the not rotated version of my function is now something like this:
while (y < gp32_height) {
buffer_mem_line=buffer_mem;
buffer_mem+=buffer_mem_offset;
x=0;
px=pxi;
while (x < gp32_width) {
buffer_scr[px+py] = *buffer_mem_line++;
x++;
px+=240;
}
y++;
py--;
}
Any help would be appreciated.
Regards.
I'm investigating ways to improve the speed of my MAME port for GP32.
One critical part is the video output function. It has to extract a part of a big VGA style video buffer and output it to a GP32 video buffer (320x240).
I have seen xlatgp32 that is done in ARM ASM but it is not useful for MAME because this function needs the origin VGA video buffer to be in 320x240 resolution. In MAME the origin video buffer has bigger resolution. Also another problem is that i need the posibility of rotating the image.
In example the not rotated version of my function is now something like this:
while (y < gp32_height) {
buffer_mem_line=buffer_mem;
buffer_mem+=buffer_mem_offset;
x=0;
px=pxi;
while (x < gp32_width) {
buffer_scr[px+py] = *buffer_mem_line++;
x++;
px+=240;
}
y++;
py--;
}
Any help would be appreciated.
Regards.