forked from albe/libpspvram
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Readme.txt
21 lines (14 loc) · 1.1 KB
/
Readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
libpspvram
Copyright (c) 2007 Alexander Berl 'Raphael' <[email protected]>
http://wordpress.fx-world.org
This library provides two different versions of a dynamic VRAM allocation manager, namely libpspvram and libpspvramalloc.
**Note for the people already using libpspvram, valloc has been renamed to vramalloc! Please update your applications!**
The two versions differ in the following specifics:
-vramalloc uses dynamic system ram allocation for the management structures (hence may contribute to fragmentation and is slower for allocations/frees)
-vramalloc aligns on 16byte default, while vram allocates on 512byte default (hence vram has a little overhead for allocations not a multiple of 512byte)
-vram is much faster than vramalloc
-vram doesn't provide "vgetMemorySize" any more, as this function has nothing really to do with the MMU itself
libpspvram is the recommended version to use, unless you find real reasons to stay with libpspvramalloc.
To install type:
make && make install
Then just link -lpspvram or -lpspvramalloc in your makefile and include <vram.h> or <vramalloc.h> in your source code.