notaz
Certified Guru
I've got a new idea to use in our emus. If the LCD slider in GP2X firmware affects LCD refresh rate, why can't we set the GP2X LCD refresh rate to exactly 50Hz (PAL) or 60Hz (NTSC)? This would mean perfect sync of emulated video with the actual display, and the emulator could sync it's timing with the _real_ 50/60Hz vsync signal from GP2X.
So I have written this little test. It can set various internal GP2X registers, which I found to be affecting the LCD refresh rate. It also draws some moving lines to see if the bottom right pixel problem shows up.
If I set DISPCLKDIV to at least 17, the bottom-right pixel problem goes away. Setting it to 5 also seems to fix it, but a white column appears on the left.
These settings set the refresh rate to 50 for me without the pixel problem:
CODE
DISPCLKDIV: 17
HSWID: 26
HSSSTR: 9
HSEND: 9
VSEND: 22
DESTR: 37
These put it really near 60Hz, but not perfect (will try to do something about that later):
CODE
DISPCLKDIV: 17
HSWID: 1
HSSSTR: 0
HSEND: 0
VSEND: 7
DESTR: 34
What I want to know is if it is the same on other people's units. What about mk1? Can YOU help me to find out by some testing?
So I have written this little test. It can set various internal GP2X registers, which I found to be affecting the LCD refresh rate. It also draws some moving lines to see if the bottom right pixel problem shows up.
If I set DISPCLKDIV to at least 17, the bottom-right pixel problem goes away. Setting it to 5 also seems to fix it, but a white column appears on the left.
These settings set the refresh rate to 50 for me without the pixel problem:
CODE
DISPCLKDIV: 17
HSWID: 26
HSSSTR: 9
HSEND: 9
VSEND: 22
DESTR: 37
These put it really near 60Hz, but not perfect (will try to do something about that later):
CODE
DISPCLKDIV: 17
HSWID: 1
HSSSTR: 0
HSEND: 0
VSEND: 7
DESTR: 34
What I want to know is if it is the same on other people's units. What about mk1? Can YOU help me to find out by some testing?
Last edited by a moderator: