OK, this is the absolute last FrameBuffer optimization thing for

today (I was supposed to be working on the TIA stuff and I
haven't even touched it yet).  I think we have to accept that
software mode in Windows just isn't as fast as Linux (yay!),
and suggest not to use high resolutions in software mode.
Normal resolutions of 800x600 or below are fine; it's just
1024x768 and above that causes problems.

The good news is that OpenGL mode in Windows works better than
it ever did.  Hopefully this will take care of that other weird
OpenGL problem that I could never track down ...


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@685 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2005-07-20 18:44:38 +00:00
parent a7744a466c
commit b9011a68f8
2 changed files with 34 additions and 8 deletions

View File

@ -13,7 +13,7 @@
// See the file "license" for information on usage and redistribution of
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
//
// $Id: FrameBuffer.cxx,v 1.56 2005-07-20 17:33:03 stephena Exp $
// $Id: FrameBuffer.cxx,v 1.57 2005-07-20 18:44:38 stephena Exp $
//============================================================================
#include <sstream>
@ -184,7 +184,8 @@ void FrameBuffer::update()
{
myMessageTime = -1;
theRedrawTIAIndicator = true;
}
drawMediaSource(); // show the changes right now, not next frame
}
}
}
break; // S_EMULATE
@ -260,6 +261,13 @@ void FrameBuffer::refreshOverlay(bool now)
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void FrameBuffer::showMessage(const string& message)
{
// Erase old messages on the screen
if(myMessageTime != -1)
{
theRedrawTIAIndicator = true;
drawMediaSource();
}
myMessageText = message;
myMessageTime = myFrameRate << 1; // Show message for 2 seconds
}

View File

@ -155,6 +155,9 @@ opengl32.lib"
<File
RelativePath="..\..\debugger\ByteDerefExpression.cxx">
</File>
<File
RelativePath="..\..\debugger\ByteDerefOffsetExpression.cxx">
</File>
<File
RelativePath="..\..\emucore\Cart.cxx">
</File>
@ -236,6 +239,9 @@ opengl32.lib"
<File
RelativePath="..\..\debugger\CpuDebug.cxx">
</File>
<File
RelativePath="..\..\debugger\CpuMethodExpression.cxx">
</File>
<File
RelativePath="..\..\gui\CpuWidget.cxx">
</File>
@ -335,9 +341,6 @@ opengl32.lib"
<File
RelativePath="..\..\debugger\HiByteExpression.cxx">
</File>
<File
RelativePath="..\..\debugger\IntMethodExpression.cxx">
</File>
<File
RelativePath="..\..\emucore\Joystick.cxx">
</File>
@ -494,6 +497,12 @@ opengl32.lib"
<File
RelativePath="..\..\debugger\TIADebug.cxx">
</File>
<File
RelativePath="..\..\debugger\TiaMethodExpression.cxx">
</File>
<File
RelativePath="..\..\debugger\TiaOutputWidget.cxx">
</File>
<File
RelativePath="..\..\emucore\TIASound.c">
</File>
@ -562,6 +571,9 @@ opengl32.lib"
<File
RelativePath="..\..\debugger\ByteDerefExpression.hxx">
</File>
<File
RelativePath="..\..\debugger\ByteDerefOffsetExpression.hxx">
</File>
<File
RelativePath="..\..\emucore\Cart.hxx">
</File>
@ -649,6 +661,9 @@ opengl32.lib"
<File
RelativePath="..\..\debugger\CpuDebug.hxx">
</File>
<File
RelativePath="..\..\debugger\CpuMethodExpression.hxx">
</File>
<File
RelativePath="..\..\gui\CpuWidget.hxx">
</File>
@ -757,9 +772,6 @@ opengl32.lib"
<File
RelativePath="..\..\debugger\HiByteExpression.hxx">
</File>
<File
RelativePath="..\..\debugger\IntMethodExpression.hxx">
</File>
<File
RelativePath="..\..\emucore\Joystick.hxx">
</File>
@ -928,6 +940,12 @@ opengl32.lib"
<File
RelativePath="..\..\debugger\TIADebug.hxx">
</File>
<File
RelativePath="..\..\debugger\TiaMethodExpression.hxx">
</File>
<File
RelativePath="..\..\debugger\TiaOutputWidget.hxx">
</File>
<File
RelativePath="..\..\emucore\TIASound.h">
</File>