Search found 5 matches

by Dirbaio
Thu Sep 08, 2011 8:23 pm
Forum: DS/DSi Development
Topic: Timing problems with IRQs and graphics
Replies: 6
Views: 8473

Re: Timing problems with IRQs and graphics

I am not sure that using the 3d engine in a vblank is such a good idea. glFlush swaps the geometry buffers during vblank. Are you sure that the decoder is the issue? I would think that loading the mp3 from disk would be a bigger issue. How are you doing this? are decoding with the whole file ...
by Dirbaio
Thu Sep 08, 2011 6:04 pm
Forum: DS/DSi Development
Topic: Timing problems with IRQs and graphics
Replies: 6
Views: 8473

Timing problems with IRQs and graphics

I'm trying to code a MP3 player for the DS. Moonshell-like: you get a nice UI with smooth scrolling lists and such. MP3 streaming is working, the basic UI is done (a navigable scrolling file list) But I have a problem: calls to the MP3 player take much more than 1/60th of a second so I can't animate ...
by Dirbaio
Tue Jul 27, 2010 7:01 pm
Forum: devkitARM
Topic: How can I make custom malloc / free?
Replies: 10
Views: 20365

Re: How can I make custom malloc / free?

Nope :) I dont want custom mallocs because I think that the default ones are bugged. With custom mallocs you can do very good debugging. For instance, what i have now is this: http://dirbaio.pastebin.com/UaHqxWfa What it does is allocate the memory from the beginning of RAM, and each allocated block ...
by Dirbaio
Tue Jul 27, 2010 9:17 am
Forum: devkitARM
Topic: How can I make custom malloc / free?
Replies: 10
Views: 20365

Re: How can I make custom malloc / free?

I need it for two reasons: - For debugging: I have weird memory corruption issues :( - For ROM Hacking (in particular NSMB Hacking): I've set up some linker scripts that allow me to write some asm/c/c++ code and insert it into the game. I need malloc/free to call the actuall malloc/free from the ...
by Dirbaio
Sun Jul 25, 2010 8:01 pm
Forum: devkitARM
Topic: How can I make custom malloc / free?
Replies: 10
Views: 20365

How can I make custom malloc / free?

So, basically I want to implement my custom malloc and free, overriding libc ones. I've tried the following without success: - Malloc hooks: they don't exist in devkitarm :( - Defining my own malloc / free functions: Works, but some functions from libc (printf related) call _malloc_r and _free_r ...