gsdx-debug: stop the dump after a limited number of draw call

Otherwise it fills your disk in a short time with useless data.
This commit is contained in:
Gregory Hainaut 2015-05-03 16:46:48 +02:00
parent c1ddad2d25
commit 7bfee7e377
4 changed files with 10 additions and 0 deletions

View File

@ -429,6 +429,10 @@ void GSRendererHW::Draw()
}
s_n++;
if ((s_n - s_saven) > s_savel) {
s_dump = 0;
}
}
if(m_hacks.m_oi && !(this->*m_hacks.m_oi)(rt->m_texture, ds->m_texture, tex))

View File

@ -560,6 +560,10 @@ void GSRendererSW::Draw()
}
s_n++;
if ((s_n - s_saven) > s_savel) {
s_dump = 0;
}
}
else
{

View File

@ -51,6 +51,7 @@ GSState::GSState()
s_savet = !!theApp.GetConfig("savet", 0);
s_savez = !!theApp.GetConfig("savez", 0);
s_saven = theApp.GetConfig("saven", 0);
s_savel = theApp.GetConfig("savel", 5000);
#ifdef __linux__
if (s_dump) {
mkdir("/tmp/GS_HW_dump", 0777);

View File

@ -208,6 +208,7 @@ public:
bool s_savet;
bool s_savez;
int s_saven;
int s_savel;
public:
GSState();