add the renderer name to stats (so that I won't be confused about which is being used)
This commit is contained in:
@@ -105,11 +105,16 @@ void RageDisplay::ResetStats()
|
||||
|
||||
CString RageDisplay::GetStats() const
|
||||
{
|
||||
CString s;
|
||||
/* If FPS == 0, we don't have stats yet. */
|
||||
if( !GetFPS() )
|
||||
return "-- FPS\n-- av FPS\n-- VPF";
|
||||
s = "-- FPS\n-- av FPS\n-- VPF";
|
||||
|
||||
return ssprintf( "%i FPS\n%i av FPS\n%i VPF", GetFPS(), GetCumFPS(), GetVPF() );
|
||||
s = ssprintf( "%i FPS\n%i av FPS\n%i VPF", GetFPS(), GetCumFPS(), GetVPF() );
|
||||
|
||||
s += "\n"+this->GetApiDescription();
|
||||
|
||||
return s;
|
||||
}
|
||||
|
||||
void RageDisplay::EndFrame()
|
||||
|
||||
@@ -133,7 +133,7 @@ public:
|
||||
/* This is needed or the overridden classes' dtors will not be called. */
|
||||
virtual ~RageDisplay() { }
|
||||
|
||||
virtual CString GetApiDescription() = 0;
|
||||
virtual CString GetApiDescription() const = 0;
|
||||
|
||||
// Don't override this. Override TryVideoMode() instead.
|
||||
// This will set the video mode to be as close as possible to params.
|
||||
|
||||
@@ -10,7 +10,7 @@ public:
|
||||
~RageDisplay_D3D();
|
||||
CString Init( VideoModeParams p );
|
||||
|
||||
virtual CString GetApiDescription() { return "D3D"; }
|
||||
virtual CString GetApiDescription() const { return "D3D"; }
|
||||
void ResolutionChanged();
|
||||
const PixelFormatDesc *GetPixelFormatDesc(PixelFormat pf) const;
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ class RageDisplay_Null: public RageDisplay
|
||||
public:
|
||||
RageDisplay_Null( VideoModeParams p );
|
||||
|
||||
virtual CString GetApiDescription() { return "Null"; }
|
||||
virtual CString GetApiDescription() const { return "Null"; }
|
||||
void ResolutionChanged() { }
|
||||
const PixelFormatDesc *GetPixelFormatDesc(PixelFormat pf) const;
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ public:
|
||||
virtual ~RageDisplay_OGL();
|
||||
CString Init( VideoModeParams p, bool bAllowUnacceleratedRenderer );
|
||||
|
||||
virtual CString GetApiDescription() { return "OpenGL"; }
|
||||
virtual CString GetApiDescription() const { return "OpenGL"; }
|
||||
void ResolutionChanged();
|
||||
const PixelFormatDesc *GetPixelFormatDesc(PixelFormat pf) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user