Advertising (This ad goes away for registered users. You can Login or Register)

Question about heap size and SceKernelMemBlockType

Open discussions on programming specifically for the PS Vita.
Forum rules
Forum rule Nº 15 is strictly enforced in this subforum.
Post Reply
anvuong
Posts: 7
Joined: Fri Jul 03, 2015 9:25 am

Question about heap size and SceKernelMemBlockType

Post by anvuong » Mon Feb 01, 2016 7:42 am

Hello,

Could anyone please help me answer 2 question below ?

1. From what i read in this docment http://games.soc.napier.ac.uk/resources ... al_003.pdf
In the official SDK , developers can manually modified the heap size by providing sceLibcHeapSize variable .
Could we do this in the open vitasdk ?

2. After making some search on google , i found this http://pastebin.com/V1xEarfT , It seem to be the leaked source of Official VitaSDK sample . In that source, i can find 2 SceKernelMemBlockTypes (SCE_KERNEL_MEMBLOCK_TYPE_USER_RWDATA_UNCACHE , SCE_KERNEL_MEMBLOCK_TYPE_USER_CDRAM_RWDATA) that cannot be found open Vitasdk .
So are those 2 SceKernelMemBlockTypes SCE_KERNEL_MEMBLOCK_TYPE_USER_MAIN_PHYCONT_RW and SCE_KERNEL_MEMBLOCK_TYPE_USER_MAIN_PHYCONT_NC_RW in the open vitasdk?
Advertising

xyz
Posts: 61
Joined: Thu Jan 20, 2011 7:06 pm

Re: Question about heap size and SceKernelMemBlockType

Post by xyz » Wed Feb 17, 2016 12:04 pm

1. In vitasdk we don't use Sony's heap implementation. If you want to change the default heap size (which is 32MB at the moment of writing), set "int _newlib_heap_size_user = 64 * 1024 * 1024;" e.g. for 64MB.

2. SCE_KERNEL_MEMBLOCK_TYPE_USER_RWDATA_UNCACHE is the same as SCE_KERNEL_MEMBLOCK_TYPE_USER_RW_UNCACHE, SCE_KERNEL_MEMBLOCK_TYPE_USER_CDRAM_RWDATA is the same as SCE_KERNEL_MEMBLOCK_TYPE_USER_CDRAM_RW.
Advertising

gokuhs
Posts: 11
Joined: Thu Mar 10, 2011 2:24 pm

Re: Question about heap size and SceKernelMemBlockType

Post by gokuhs » Tue Oct 15, 2019 5:55 pm

THANKS!
In my project fault the _newlib_heap_size_user so i can only use 32MB, i going crazy finding this!

dadi01
Posts: 2
Joined: Thu Oct 17, 2019 11:41 am

Re: Question about heap size and SceKernelMemBlockType

Post by dadi01 » Thu Oct 17, 2019 11:42 am

xyz wrote:
Wed Feb 17, 2016 12:04 pm
1. In vitasdk we don't use Sony's heap implementation. If you want to change the default heap size (which is 32MB at the moment of writing), set "int _newlib_heap_size_user = 64 * 1024 * 1024;" e.g. for 64MB.

2. SCE_KERNEL_MEMBLOCK_TYPE_USER_RWDATA_UNCACHE is the same as SCE_KERNEL_MEMBLOCK_TYPE_USER_RW_UNCACHE, SCE_KERNEL_MEMBLOCK_TYPE_USER_CDRAM_RWDATA is the same as SCE_KERNEL_MEMBLOCK_TYPE_USER_CDRAM_RW.
Thank you bro

Post Reply

Return to “Programming and Security”