Emulator refresh rates
Okay, I'm going to ask a really lame, beginner question ;)
Zx Spectrum refreshes screen 50 times per second.
I'm running emulator on PC which says that it refreshes screen 75 times per second. Other values are possible too, I guess.
So how do emulators exactly work? If they assumed one Zx frame=one PC frame they would run faster than Spectrum, am I right?
I guess it doesn't happen so what? Do they refresh screen only during some PC frames and skip some frames? That would mean that screen refresh sometimes take 1 PC frame and sometimes 2 frames? Does this work this way? Does it cause some jerkiness?
If I'm talking nonsense please correct me. I just had to ask it after all these years :)
Zx Spectrum refreshes screen 50 times per second.
I'm running emulator on PC which says that it refreshes screen 75 times per second. Other values are possible too, I guess.
So how do emulators exactly work? If they assumed one Zx frame=one PC frame they would run faster than Spectrum, am I right?
I guess it doesn't happen so what? Do they refresh screen only during some PC frames and skip some frames? That would mean that screen refresh sometimes take 1 PC frame and sometimes 2 frames? Does this work this way? Does it cause some jerkiness?
If I'm talking nonsense please correct me. I just had to ask it after all these years :)
Post edited by Ralf on
Comments
I agree, if games has a framerate 10 fps or so it all doesn't really matter.
But I was was recently experimenting with fast scrolling on Spectrum(examining existing games and trying to make my own scrolling engine. I mean framerates like 50 fps or 25 fps.
Is it just me or Spectrum scrolling in emulators generally looks rather badly?
Pixels seem to become "blurry" sometimes it seems to run a little bit faster, sometimes slower etc. I wonder, are these emulator artifacts, my illusions or just real Spectrum works this way with scrolling too.
Maybe I'm just unlucky then as the last three that i've owned have not. Maybe not having a decent graphics card had something to do with it.
Yes. Try Unreal Speccy Portable. Turn off "true speed" option in menu.
https://bitbucket.org/djdron/unrealspeccyp/downloads
1. Just skip some frames, for example if display working on 75 Hz, then show 2 frames and skip 1 frame from 3. But scrolls will be not smooth on 60 Hz
2. Frame resampling with interpolation - pixel color is combined from two frames, weight of each frame depends on time difference with 50 Hz frame rate
So this may be a source of blur during smooth scroll too?
The interesting thing in most emulators is that while I see the blur in action, when I pause the emulator and try to get the screenshot, there are always clear sharp pixels. So I can't even prove to you that I see blur :)
Many are able to blend one frame with the last one, which will blur scrolling but mainly reduce the flicker of 'Gigascreen' and other 25fps alternating-screen / attribute effects. But this is generally best turned off when not viewing such graphics.
- IONIAN-GAMES.com -
I'm not sure why you would be seeing a blurred scroll. Have you perchance enabled pixel smoothing (or whatever the equivalent option might be in another emulator) that does cause the display to be a little less sharp to mimic a TV screen? During scroll that might be a bit more obvious I suppose but I could be barking up the wrong tree...
Bytes:Chuntey - Spectrum tech blog.
That's why I so much prefer the smooth scrolling in ZXDS. The single clock source for everything allows the sound, display and emulation all synced perfectly.
Patrik
Possibly, the trick needs a 50hz capable graphics card. Monitors usually switch to 50hz automatically.
It enables me to do what I do - browse the web and play old games. But maybe it has some impact on emulator performance too:-?
When I use my laptop built in display the only refresh rate available to me in 60hz. Same as the monitor downstairs.
If I hook my laptop up to both the HDTVs in the house a range of refresh rates are available including 50hz. So I'd say that a safer bet for 50hz is to go with a small 1080p HDTV rather than a monitor.