From 2057b1421cf274d5d3a670d8b6e64551174fb3d4 Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Wed, 8 Mar 2017 18:13:01 -0330 Subject: [PATCH] Set ROM launcher framerate to 30fps. There's no need for it to be a full 60fps, and it reduces CPU usage up to 30% on some systems. --- Changes.txt | 8 +++++--- src/emucore/OSystem.cxx | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Changes.txt b/Changes.txt index b117a1808..2d14b351c 100644 --- a/Changes.txt +++ b/Changes.txt @@ -45,6 +45,11 @@ this bug has only ever occurred in Windows XP, but it's been there since Stella 4.1. + * When in 'ROM launcher mode', Stella now uses less CPU time. + + * Added ROM properties for D.K. VCS homebrew ROM, thanks to Andreas + Dietrich. + * For the Linux/UNIX port: - The settings directory now uses the XDG Base Directory Specification. In most cases, this means that your files will now be stored in @@ -66,9 +71,6 @@ cd ~/Library/Preferences mv net.sourceforge.Stella.plist Stella-emu.plist - * Added ROM properties for D.K. VCS homebrew ROM, thanks to Andreas - Dietrich. - * Updated internal ROM properties database to ROM-Hunter version 12 (thanks go to RomHunter for his tireless research in this area). Related to this, updated the snapshot collection. diff --git a/src/emucore/OSystem.cxx b/src/emucore/OSystem.cxx index 3e4949a63..c11b5c62f 100644 --- a/src/emucore/OSystem.cxx +++ b/src/emucore/OSystem.cxx @@ -425,7 +425,7 @@ bool OSystem::createLauncher(const string& startdir) myLauncher->reStack(); myFrameBuffer->setCursorState(); - setFramerate(60); + setFramerate(30); resetLoopTiming(); status = true; }