Space Engineers
Public Member Functions | Protected Member Functions | Properties | List of all members
VRageRender.Profiler.MyRenderProfilerRendering Class Referenceabstract
Inheritance diagram for VRageRender.Profiler.MyRenderProfilerRendering:
VRage.Profiler.MyRenderProfiler

Public Member Functions

abstract Vector2 MeasureText (StringBuilder text, float scale)
 
abstract float DrawText (Vector2 screenCoord, StringBuilder text, Color color, float scale)
 
abstract float DrawTextShadow (Vector2 screenCoord, StringBuilder text, Color color, float scale)
 
abstract void DrawOnScreenLine (Vector3 v0, Vector3 v1, Color color)
 
abstract void Init ()
 
abstract void BeginLineBatch ()
 
abstract void EndLineBatch ()
 
- Public Member Functions inherited from VRage.Profiler.MyRenderProfiler
void GetAutocommit (ref bool val)
 
void SetAutocommit (bool val)
 
void Commit ([CallerMemberName] string member="", [CallerLineNumber] int line=0, [CallerFilePath] string file="")
 
void Draw ([CallerMemberName] string member="", [CallerLineNumber] int line=0, [CallerFilePath] string file="")
 
void StartProfilingBlock (string blockName=null, float customValue=0, [CallerMemberName] string member="", [CallerLineNumber] int line=0, [CallerFilePath] string file="")
 
void EndProfilingBlock (float customValue=0, MyTimeSpan?customTime=null, string timeFormat=null, string valueFormat=null, [CallerMemberName] string member="", [CallerLineNumber] int line=0, [CallerFilePath] string file="")
 
void GPU_StartProfilingBlock (string blockName=null, float customValue=0, [CallerMemberName] string member="", [CallerLineNumber] int line=0, [CallerFilePath] string file="")
 
void GPU_EndProfilingBlock (float customValue=0, MyTimeSpan?customTime=null, string timeFormat=null, string valueFormat=null, [CallerMemberName] string member="", [CallerLineNumber] int line=0, [CallerFilePath] string file="")
 
void StartNextBlock (string name, [CallerMemberName] string member="", [CallerLineNumber] int line=0, [CallerFilePath] string file="")
 
void InitMemoryHack (string name)
 
void ProfileCustomValue (string name, float value, MyTimeSpan?customTime=null, string timeFormat=null, string valueFormat=null, [CallerMemberName] string member="", [CallerLineNumber] int line=0, [CallerFilePath] string file="")
 
void SetLevel (int index)
 
void Dump ()
 

Protected Member Functions

sealed override void Draw (MyProfiler drawProfiler, int lastFrameIndex, int frameToDraw)
 

Properties

abstract Vector2 ViewportSize [get]
 Returns viewport size in pixels More...
 
- Properties inherited from VRage.Profiler.MyRenderProfiler
static bool ProfilerProcessingEnabled [get]
 
static bool ProfilerVisible [get]
 Returns true when profiler is visible. More...
 
static MyProfiler SelectedProfiler [get, set]
 
static int SelectedIndex [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from VRage.Profiler.MyRenderProfiler
static MyProfiler CreateProfiler (string name, string axisName=null, bool memoryProfiling=false)
 Creates new profiler which can be used to profile anything (e.g. network stats). More...
 
static List< MyProfilerBlockGetSortedChildren (int frameToSortBy)
 
static MyProfilerBlock FindBlockByIndex (int index)
 
static MyProfilerBlock FindBlockByMax (int frameIndex, int lastValidFrame)
 
static void HandleInput (RenderProfilerCommand command, int index)
 
static MyProfiler GetProfilerAtIndex (int index)
 
- Public Attributes inherited from VRage.Profiler.MyRenderProfiler
const string PerformanceProfilingSymbol = VRage.MyCompilationSymbols.PerformanceProfiling ? "WINDOWS" : "__RANDOM_UNDEFINED_PROFILING_SYMBOL__"
 
const bool MemoryProfiling = VRage.MyCompilationSymbols.ProfileWorkingSetMemory
 
- Static Public Attributes inherited from VRage.Profiler.MyRenderProfiler
static bool Paused = false
 
static Action< int > GetProfilerFromServer
 
static Action< int > SaveProfilerToFile
 
static Action< int > LoadProfilerFromFile
 
static int ServerSelectedIndex
 
static bool IsProfilerFromServer
 
- Static Protected Member Functions inherited from VRage.Profiler.MyRenderProfiler
static Color IndexToColor (int index)
 
static bool IsValidIndex (int frameIndex, int lastValidFrame)
 
static float FindMaxWrap (float[] data, int lower, int upper, int lastValidFrame, out int maxIndex)
 
- Protected Attributes inherited from VRage.Profiler.MyRenderProfiler
StringBuilder m_text = new StringBuilder(100)
 
- Static Protected Attributes inherited from VRage.Profiler.MyRenderProfiler
static RenderProfilerSortingOrder m_sortingOrder = RenderProfilerSortingOrder.MillisecondsLastFrame
 Sorting order will sort the listed elements in the profiler by the specified ProfilerSortingOrder More...
 
static MyDrawArea m_milisecondsGraphScale = new MyDrawArea(0.49f, 0, (2 - 0.51f) / 2, 0.9f, 25)
 
static MyDrawArea m_memoryGraphScale = new MyDrawArea(0.49f, 0, (2 - 0.51f) / 2, 0.6f, 0.001f)
 
static Color[] m_colors
 
static MyProfilerBlock m_fpsBlock
 
static float m_fpsPctg
 
static List< MyProfilerm_threadProfilers = new List<MyProfiler>(16)
 
static MyProfiler m_selectedProfiler
 
static bool m_enabled = false
 
static int m_selectedFrame = 0
 
static int m_levelLimit = -1
 
static bool m_useCustomFrame = false
 
static int m_frameLocalArea = MyProfiler.MAX_FRAMES
 

Detailed Description

Definition at line 12 of file MyRenderProfilerRendering.cs.

Member Function Documentation

abstract void VRageRender.Profiler.MyRenderProfilerRendering.BeginLineBatch ( )
pure virtual
sealed override void VRageRender.Profiler.MyRenderProfilerRendering.Draw ( MyProfiler  drawProfiler,
int  lastFrameIndex,
int  frameToDraw 
)
inlineprotectedvirtual

Implements VRage.Profiler.MyRenderProfiler.

Definition at line 153 of file MyRenderProfilerRendering.cs.

abstract void VRageRender.Profiler.MyRenderProfilerRendering.DrawOnScreenLine ( Vector3  v0,
Vector3  v1,
Color  color 
)
pure virtual
abstract float VRageRender.Profiler.MyRenderProfilerRendering.DrawText ( Vector2  screenCoord,
StringBuilder  text,
Color  color,
float  scale 
)
pure virtual
abstract float VRageRender.Profiler.MyRenderProfilerRendering.DrawTextShadow ( Vector2  screenCoord,
StringBuilder  text,
Color  color,
float  scale 
)
pure virtual
abstract void VRageRender.Profiler.MyRenderProfilerRendering.EndLineBatch ( )
pure virtual
abstract void VRageRender.Profiler.MyRenderProfilerRendering.Init ( )
pure virtual
abstract Vector2 VRageRender.Profiler.MyRenderProfilerRendering.MeasureText ( StringBuilder  text,
float  scale 
)
pure virtual

Property Documentation

abstract Vector2 VRageRender.Profiler.MyRenderProfilerRendering.ViewportSize
get

Returns viewport size in pixels

Definition at line 17 of file MyRenderProfilerRendering.cs.


The documentation for this class was generated from the following file: