mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-19 19:15:26 +00:00
vk: Optimize heap check iterator
- Significant boost in some scenarios
This commit is contained in:
parent
d99a236f72
commit
1fd26a226a
1 changed files with 1 additions and 2 deletions
|
@ -1161,9 +1161,9 @@ void VKGSRender::check_heap_status(u32 flags)
|
|||
else
|
||||
{
|
||||
heap_critical = false;
|
||||
u32 test = 1u << std::countr_zero(flags);
|
||||
do
|
||||
{
|
||||
const u32 test = 1u << std::countr_zero(flags);
|
||||
switch (flags & test)
|
||||
{
|
||||
case 0:
|
||||
|
@ -1203,7 +1203,6 @@ void VKGSRender::check_heap_status(u32 flags)
|
|||
}
|
||||
|
||||
flags &= ~test;
|
||||
test <<= 1;
|
||||
}
|
||||
while (flags && !heap_critical);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue