mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 06:26:49 +00:00
Savestates/vm: Improve saving performance
This commit is contained in:
parent
f0c93ae9dc
commit
858e493b52
2 changed files with 7 additions and 11 deletions
|
|
@ -1665,13 +1665,13 @@ namespace vm
|
|||
|
||||
ar.breathe();
|
||||
|
||||
for (usz iter_count = 0; size; iter_count++, ptr += byte_of_pages)
|
||||
for (usz iter_count = 0; size; iter_count += sizeof(u32), ptr += byte_of_pages * sizeof(u32))
|
||||
{
|
||||
size -= byte_of_pages;
|
||||
const u32 bitmap = read_from_ptr<le_t<u32>>(bit_array, iter_count);
|
||||
|
||||
const u8 bitmap = bit_array[iter_count];
|
||||
size -= byte_of_pages * sizeof(bitmap);
|
||||
|
||||
for (usz i = 0; i < byte_of_pages;)
|
||||
for (usz i = 0; i < byte_of_pages * sizeof(bitmap);)
|
||||
{
|
||||
usz block_count = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue