Add option to fix the framerate to the native screen refresh rate
Useful on mobile devices where using non-standard framerates looks absolutely horrible and screen refresh rates vary highly.
This commit is contained in:
parent
4fb94aaf10
commit
146e0294b4
6 changed files with 44 additions and 6 deletions
|
|
@ -187,6 +187,7 @@ struct RGSSThreadData
|
|||
|
||||
Vec2 sizeResoRatio;
|
||||
Vec2i screenOffset;
|
||||
const int refreshRate;
|
||||
|
||||
Config config;
|
||||
|
||||
|
|
@ -196,12 +197,14 @@ struct RGSSThreadData
|
|||
const char *argv0,
|
||||
SDL_Window *window,
|
||||
ALCdevice *alcDev,
|
||||
int refreshRate,
|
||||
const Config& newconf)
|
||||
: ethread(ethread),
|
||||
argv0(argv0),
|
||||
window(window),
|
||||
alcDev(alcDev),
|
||||
sizeResoRatio(1, 1),
|
||||
refreshRate(refreshRate),
|
||||
config(newconf)
|
||||
{}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue