mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-03 04:51:15 +01:00
gsdx-debug: dump register context in a .txt file
+ Realign s_n number if frame is skipped This way it is easier to understand current draw. It also eases comparaison between SW/HW.
This commit is contained in:
1 parent
5d4bc5c8fe
commit
6fca3b421d
4 files changed
+160
-5
No files matched your search
@@ -541,6 +541,17 @@ void GSRendererSW::Draw()
|
||||
|
||||
s_n++;
|
||||
|
||||
static uint64 draw_call = 0; // Redundant with s_n but easier to map in GL debug tool
|
||||
if (s_n >= s_saven) {
|
||||
// Dump Register state
|
||||
s = format("%05d_context_d%lld.txt", s_n, draw_call);
|
||||
|
||||
m_env.Dump(root_sw+s);
|
||||
m_context->Dump(root_sw+s);
|
||||
}
|
||||
draw_call++;
|
||||
|
||||
|
||||
Queue(data);
|
||||
|
||||
Sync(3);
|
||||
|
||||
Reference in new issue
Block a user