From 2dccc2df15b52a7b9d1489b1fd06861216997b3e Mon Sep 17 00:00:00 2001 From: stephena Date: Mon, 23 Jun 2014 15:34:25 +0000 Subject: [PATCH] Partially reverted FrameBuffer changes, since it *still* didn't fully fix issues in Ubuntu Unity, and caused CPU usage to spike to 100% in all other tested platforms. So for now, I'm putting it back to low CPU usage for all other platforms (Linux w/o Unity, OSX, Windows, etc), and treating this as a Unity bug (which isn't unheard of). git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2935 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- src/emucore/FrameBuffer.cxx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/emucore/FrameBuffer.cxx b/src/emucore/FrameBuffer.cxx index 38b2a2fec..6bd80be2d 100644 --- a/src/emucore/FrameBuffer.cxx +++ b/src/emucore/FrameBuffer.cxx @@ -312,8 +312,6 @@ void FrameBuffer::update() case EventHandler::S_PAUSE: { - drawTIA(); - // Show a pause message every 5 seconds if(myPausedCount++ >= 7*myOSystem.frameRate()) { @@ -325,28 +323,26 @@ void FrameBuffer::update() case EventHandler::S_MENU: { - drawTIA(); - myOSystem.menu().draw(isDoubleBuffered()); + myOSystem.menu().draw(); break; // S_MENU } case EventHandler::S_CMDMENU: { - drawTIA(); - myOSystem.commandMenu().draw(isDoubleBuffered()); + myOSystem.commandMenu().draw(); break; // S_CMDMENU } case EventHandler::S_LAUNCHER: { - myOSystem.launcher().draw(isDoubleBuffered()); + myOSystem.launcher().draw(); break; // S_LAUNCHER } #ifdef DEBUGGER_SUPPORT case EventHandler::S_DEBUGGER: { - myOSystem.debugger().draw(isDoubleBuffered()); + myOSystem.debugger().draw(); break; // S_DEBUGGER } #endif