Skip to content

pspdev/libpspvram

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libpspvram
Copyright (c) 2007 Alexander Berl 'Raphael' <a.berl@outlook.com>
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.

About

Dynamic VRAM allocation manager for the PSP - backup fork, see:

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 92.2%
  • Makefile 5.6%
  • CMake 2.2%