Search
lxdream.org :: lxdream/src/pvr2/rendsave.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/rendsave.c
changeset 934:3acd3b3ee6d1
prev736:a02d1475ccfd
author nkeynes
date Fri Dec 26 14:25:23 2008 +0000 (13 years ago)
branchlxdream-mem
permissions -rw-r--r--
last change Change RAM regions to use static arrays rather than mmap regions, for a 2-3% performance gain.
General mem cleanups, including some save state fixes that break states again.
file annotate diff log raw
1.1 --- a/src/pvr2/rendsave.c Mon Jul 14 07:44:42 2008 +0000
1.2 +++ b/src/pvr2/rendsave.c Fri Dec 26 14:25:23 2008 +0000
1.3 @@ -31,8 +31,6 @@
1.4 #define SAVE_PAGE_SIZE 1024
1.5 #define SAVE_PAGE_COUNT 8192
1.6
1.7 -extern char *video_base;
1.8 -
1.9 /* Determine pages of memory to save. Start walking from the render tilemap
1.10 * data and build up a page list
1.11 */
1.12 @@ -88,7 +86,7 @@
1.13 uint32_t length = (j-i) * SAVE_PAGE_SIZE;
1.14 fwrite( &start, sizeof(uint32_t), 1, f );
1.15 fwrite( &length, sizeof(uint32_t), 1, f );
1.16 - fwrite( video_base + start, 1, length, f );
1.17 + fwrite( pvr2_main_ram + start, 1, length, f );
1.18 i = j-1;
1.19 }
1.20 }
.