mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
c1ddad2d25
commit
7bfee7e377
|
@ -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))
|
||||
|
|
|
@ -560,6 +560,10 @@ void GSRendererSW::Draw()
|
|||
}
|
||||
|
||||
s_n++;
|
||||
|
||||
if ((s_n - s_saven) > s_savel) {
|
||||
s_dump = 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -208,6 +208,7 @@ public:
|
|||
bool s_savet;
|
||||
bool s_savez;
|
||||
int s_saven;
|
||||
int s_savel;
|
||||
|
||||
public:
|
||||
GSState();
|
||||
|
|
Loading…
Reference in New Issue