Search found 4 matches

by jinoh67
Fri May 10, 2013 3:40 pm
Forum: DS/DSi Development
Topic: Which one is more better, directly setting variables or API?
Replies: 3
Views: 5931

Re: Which one is more better, directly setting variables or

a few questions: why do you want to optimize your code? Is it running too slowly? Is so, then where is it running too slowly? Why do the think it is running slowly in this section? Are you running out of memory? If so, then how much free memory do you have, and how much more do you need? running fa...
by jinoh67
Sun May 05, 2013 10:07 am
Forum: DS/DSi Development
Topic: how can I render a font
Replies: 3
Views: 4990

how can I render a font

I want to use a custom font in my game, but I don't know what the best way is. 1. Make individual sprites/bg/tile for one character 2. Overlap the fonts on the sprites/bg/tile 3. Make sprites/bg in tile mode. Which one is best, and how can I implement it? I think first is a good way to render a font...
by jinoh67
Sat May 04, 2013 4:48 am
Forum: DS/DSi Development
Topic: Which one is more better, directly setting variables or API?
Replies: 3
Views: 5931

Which one is more better, directly setting variables or API?

I want to optimize my code, but I don't know which is more faster and uses less memory. If I use variables (uhh, maybe registers?) like OAM or OAM_SUB, It will be more than one statement and thus uses more ROM memory than using API (like oamSet). However, oamSet is a function and it will use call st...
by jinoh67
Sat May 04, 2013 4:21 am
Forum: DS/DSi Development
Topic: need help allocating and copying sprite tiles efficiently
Replies: 14
Views: 28212

Re: need help allocating and copying sprite tiles efficientl

On http://libnds.devkitpro.org/a00112.html#ac77a16a7cb9f2fa2b4361c22fe84245d , static void dmaCopy ( const void * source, void * dest, uint32 size ) [inline] copies from source to destination using channel 3 of DMA available channels in half words Parameters: source the source to copy from dest the ...