Page 1 of 1

Question about heap size and SceKernelMemBlockType

Posted: Mon Feb 01, 2016 7:42 am
by anvuong
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?

Re: Question about heap size and SceKernelMemBlockType

Posted: Wed Feb 17, 2016 12:04 pm
by xyz
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.

Re: Question about heap size and SceKernelMemBlockType

Posted: Tue Oct 15, 2019 5:55 pm
by gokuhs
THANKS!
In my project fault the _newlib_heap_size_user so i can only use 32MB, i going crazy finding this!

Re: Question about heap size and SceKernelMemBlockType

Posted: Thu Oct 17, 2019 11:42 am
by dadi01
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