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:
Gregory Hainaut committed 2015-05-06 19:09:12 +02:00
1 parent 5d4bc5c8fe
commit 6fca3b421d
4 files changed
+160 -5

No files matched your search

+11
View File
@@ -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);