Display memory read count in frame counter

rabi_display
wcko87 8 years ago
parent 8e196a65fc
commit a39aa6ba95
  1. 8
      rabi_splitter_WPF/RabiRibiDisplay.cs

@ -23,6 +23,9 @@ namespace rabi_splitter_WPF
private MemorySnapshot prevSnapshot;
private MemorySnapshot snapshot;
// internal frame counter.
private int memoryReadCount;
private string[] datastrings;
@ -32,11 +35,14 @@ namespace rabi_splitter_WPF
this.mainContext = mainContext;
this.debugContext = debugContext;
this.mainWindow = mainWindow;
this.memoryReadCount = 0;
StartNewGame();
}
public void ReadMemory(Process process)
{
++memoryReadCount;
// Snapshot Game Memory
snapshot = new MemorySnapshot(process, mainContext.veridx);
@ -244,7 +250,7 @@ namespace rabi_splitter_WPF
private void DebugLog(string log)
{
this.debugContext.Log(log);
this.debugContext.Log($"[ {memoryReadCount:D8}] {log}");
}
private void sendsplit()

Loading…
Cancel
Save