mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 06:51:26 +12:00
Add log warning on slow flush path
This commit is contained in:
parent
18b9ee4541
commit
54bfe2e102
1 changed files with 8 additions and 0 deletions
|
@ -1420,11 +1420,19 @@ namespace rsx
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
ASSERT(valid_length % rsx_pitch == 0);
|
ASSERT(valid_length % rsx_pitch == 0);
|
||||||
|
|
||||||
u8 *_src = src;
|
u8 *_src = src;
|
||||||
u32 _dst = dst;
|
u32 _dst = dst;
|
||||||
const auto num_rows = valid_length / rsx_pitch;
|
const auto num_rows = valid_length / rsx_pitch;
|
||||||
|
|
||||||
|
const auto num_exclusions = flush_exclusions.size();
|
||||||
|
if (num_exclusions > 0)
|
||||||
|
{
|
||||||
|
LOG_WARNING(RSX, "Slow imp_flush path triggered with non-empty flush_exclusions (%d exclusions, %d rows), performance might suffer", num_exclusions, num_rows);
|
||||||
|
}
|
||||||
|
|
||||||
for (u32 row = 0; row < num_rows; ++row)
|
for (u32 row = 0; row < num_rows; ++row)
|
||||||
{
|
{
|
||||||
imp_flush_memcpy(_dst, _src, real_pitch);
|
imp_flush_memcpy(_dst, _src, real_pitch);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue