mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-01 01:03:11 +00:00
Copy this optimization from the decompressor. 21288ms -> 20547ms, 3% faster!
This commit is contained in:
parent
60233b4a52
commit
8f7d879dae
2
rewind.c
2
rewind.c
@ -326,7 +326,7 @@ bool state_manager_push_do(state_manager_t *state)
|
||||
num16s-=changed;
|
||||
*(compressed16++)=changed;
|
||||
*(compressed16++)=skip;
|
||||
memcpy(compressed16, old16prev, changed*sizeof(uint16_t));
|
||||
for (int i=0;i<changed;i++) compressed16[i]=old16prev[i];
|
||||
compressed16+=changed;
|
||||
}
|
||||
compressed16[0]=0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user