View unanswered posts | View active topics It is currently Mon Oct 22, 2018 11:01 am

Search found 352 matches
Search these results:

 Search 
Author Message

 Forum: DS Development   Topic: Get ram usage data

 Post subject: Re: Get ram usage data
Posted: Sat Jun 29, 2013 12:46 pm 

Replies: 19
Views: 12917

The 512x512 background was being loaded as a 16bit image in VRAM. That by itself uses all of the VRAM the ds has available. It think the ne lib uses some of that VRAM for tracking allocations. So I do not think it would even fit by itself. In any case it leaves you with no place to load anything else.

 Forum: DS Development   Topic: Get ram usage data

 Post subject: Re: Get ram usage data
Posted: Sat Jun 29, 2013 2:24 am 

Replies: 19
Views: 12917

I resized nitrofiles\stages\yoshi\yoshi from 512x512 to 128x128 and everything loads fine.

 Forum: DS Development   Topic: Get ram usage data

 Post subject: Re: Get ram usage data
Posted: Sat Jun 29, 2013 1:16 am 

Replies: 19
Views: 12917

ok - you are not failing to allocate memory using malloc. rather it is NE_Alloc that is failing. NE_Alloc in this case is trying to allocate from VRAM - which you have configured to use VRAM A-D for textures. which is 512K in total. the texture you are trying to load is way too big for the ds. you c...

 Forum: DS Development   Topic: Get ram usage data

 Post subject: Re: Get ram usage data
Posted: Fri Jun 28, 2013 11:52 am 

Replies: 19
Views: 12917

Did you verify the amount you are trying to allocate when it fails? Do you have any code that I could look at?

 Forum: DS Development   Topic: Get ram usage data

 Post subject: Re: Get ram usage data
Posted: Fri Jun 28, 2013 1:18 am 

Replies: 19
Views: 12917

take a step back. how much memory are you trying to allocate? the ds only has 4MB of ram that is shared with both code and data. use the arm-none-eabi-size.exe program to see how much code and static data you have. that will let you know how much main ram will be available for use with malloc. is it...

 Forum: DS Development   Topic: Get ram usage data

 Post subject: Re: Get ram usage data
Posted: Thu Jun 27, 2013 5:25 pm 

Replies: 19
Views: 12917

try searching for mallinfo. keep in mind that on a system with limited resources like the ds you can run into issue where you have enough free memory but it is fragmented - so you do not have a free chunk that is big enough to satisfy a malloc request. it can even come down to the order that objects...

 Forum: DS Development   Topic: connect to router in game?

Posted: Tue Jun 25, 2013 9:30 pm 

Replies: 2
Views: 4574

the ds lite does not have a builtin utility to edit the wifi connection data like the dsi or 3ds. however you can scan for access points using dswifi. you would need a way to select the right ap and provide a wep key if needed. the dswifi source wifi_arm9.c in particular Wifi_AutoConnect and Wifi_As...

 Forum: devkitARM   Topic: Help with example projects keyboard and both screens ?

Posted: Mon Jun 17, 2013 6:45 pm 

Replies: 2
Views: 6356

no - libnds would have been better than devkitarm you would need to create something custom to get that functionality. the libnds console code is not setup to handle that use case. it is not impossible, but it would probably be easier to create something custom. take a look at the source code and go...

 Forum: GBA Development   Topic: Running out of channels (on GBA)

Posted: Thu Jun 13, 2013 1:41 pm 

Replies: 16
Views: 14162

are you sure this is referring to the number of channels and not the size of an internal data structure?

 Forum: Off Topic   Topic: Help with Arrays

 Post subject: Re: Help with Arrays
Posted: Wed Jun 05, 2013 7:43 pm 

Replies: 9
Views: 9714

before you go too far down this path - a better question would be why would you want to do this? just store it in a byte array and be done with it. a common situation where this type of manipulation occurs is to write to a framebuffer in vram for updating the display. the ds can use a 16 bit display...
Sort by:  
Page 5 of 36 [ Search found 352 matches ]



Jump to:  
  Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.
Get devkitPro at SourceForge.net. Fast, secure and Free Open Source software downloads