cv1k.cpp slightly more accurate frame rate [rtw, MetalliC]

This commit is contained in:
MetalliC 2020-08-24 18:56:15 +03:00
parent 9e80a833da
commit 95a91707d9

View File

@ -156,7 +156,6 @@ Touchscreen
- Used for mmmbanc, needs SH3 serial support.
Remaining Video issues
- measure h/v video timing
- mmpork startup screen flicker - the FOR USE IN JAPAN screen doesn't appear on the real PCB until after the graphics are fully loaded, it still displays 'please wait' until that point.
- is the use of the 'scroll' registers 100% correct? (related to above?)
- Sometimes the 'sprites' in mushisam lag by a frame vs the 'backgrounds' is this a timing problem, does the real game do it?
@ -478,10 +477,10 @@ void cv1k_state::cv1k(machine_config &config)
/* video hardware */
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
screen.set_refresh_hz(60);
screen.set_refresh(HZ_TO_ATTOSECONDS(60.02)); // measured from ibara PCB rates - 60.02Hz, 262 total lines
screen.set_vblank_time(ATTOSECONDS_IN_USEC(0));
screen.set_size(0x200, 0x200);
screen.set_visarea(0, 0x140-1, 0, 0xf0-1);
screen.set_size(512, 512);
screen.set_visarea(0, 320-1, 0, 240-1);
screen.set_screen_update(FUNC(cv1k_state::screen_update));
PALETTE(config, "palette").set_entries(0x10000);