Display memory read count in frame counter
This commit is contained in:
parent
8e196a65fc
commit
a39aa6ba95
@ -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…
x
Reference in New Issue
Block a user