pvr_mem_malloc

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Post Reply
User avatar
Quzar
Dream Coder
Dream Coder
Posts: 7497
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Wed Jul 31, 2002 12:14 am
Location: Miami, FL
Has thanked: 4 times
Been thanked: 9 times
Contact:

pvr_mem_malloc

Post by Quzar »

can I manipulate (read, write, move) the data in the place pointed to by the returned pointer manually? if not, is there a way for me to allocate memory in the PVR's ram for anything that is not a texture?
"When you post fewer lines of text than your signature, consider not posting at all." - A Wise Man
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5658
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has thanked: 9 times
Been thanked: 69 times
Contact:

Post by BlueCrab »

You can, but expect it to be fairly slow (compared to main memory access).
Warmtoe
DC Developer
DC Developer
Posts: 453
Joined: Thu May 16, 2002 8:29 am
Location: ice88's house
Has thanked: 0
Been thanked: 0
Contact:

Post by Warmtoe »

:-) Now I see what your MAME idea was - I had to do something similar for Simpsons!
User avatar
Quzar
Dream Coder
Dream Coder
Posts: 7497
Joined: Wed Jul 31, 2002 12:14 am
Location: Miami, FL
Has thanked: 4 times
Been thanked: 9 times
Contact:

Post by Quzar »

Warmtoe wrote::-) Now I see what your MAME idea was - I had to do something similar for Simpsons!
hehe, yea. i'm thinking of setting it up so that there is a new variable in the region struct that will be set in the rom loading part of the driver (where it sets what files get loaded into what regions) and have it load the sound files into the pvr ram =P.

i have yet to get this to work on any game larger than the total main ram size though, which leads me to believe i havnt changed things properly =\.

any tips you can give me?
"When you post fewer lines of text than your signature, consider not posting at all." - A Wise Man
Post Reply