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
src
|
@ -152,6 +152,7 @@ Config::Config()
|
|||
defScreenH(0),
|
||||
fixedFramerate(0),
|
||||
frameSkip(true),
|
||||
syncToRefreshrate(false),
|
||||
solidFonts(false),
|
||||
subImageFix(false),
|
||||
gameFolder("."),
|
||||
|
@ -181,6 +182,7 @@ void Config::read(int argc, char *argv[])
|
|||
PO_DESC(defScreenH, int) \
|
||||
PO_DESC(fixedFramerate, int) \
|
||||
PO_DESC(frameSkip, bool) \
|
||||
PO_DESC(syncToRefreshrate, bool) \
|
||||
PO_DESC(solidFonts, bool) \
|
||||
PO_DESC(subImageFix, bool) \
|
||||
PO_DESC(gameFolder, std::string) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue