Search found 358 matches
- Thu Apr 11, 2013 1:15 am
- Forum: DS/DSi Development
- Topic: Rotation example
- Replies: 5
- Views: 10230
Re: Rotation example
The 256_color_bmp example may be a better example to look at. The make file has rules for folders and for files based on extensions. It has rules for processing graphics. I think the rotation example may be older and just references the manually processed graphics.
- Mon Feb 25, 2013 10:50 pm
- Forum: DS/DSi Development
- Topic: Problem Setting Up Backgrounds and VRAM
- Replies: 4
- Views: 15020
Re: Problem Setting Up Backgrounds and VRAM
you may want to take a look at this in an emulator like desmume. It may be something as simple as layer 1 being active/visible and showing garbage. with an emulator you can look at each layer individually.
- Thu Feb 14, 2013 2:17 pm
- Forum: DS/DSi Development
- Topic: soundPlayX crashes randomly?
- Replies: 4
- Views: 10124
Re: soundPlayX crashes randomly?
out of curiosity - can you give a little detail about the context where you are calling these functions? Is this taking place in an interrupt handler do you have any error codes - are you using the default exception handler which would dump the stack and registers?
- Tue Dec 18, 2012 9:57 pm
- Forum: DS/DSi Development
- Topic: BG flicker problem
- Replies: 4
- Views: 12272
Re: BG flicker problem
call swiWaitForVBlank then update your background
- Tue Dec 18, 2012 8:34 pm
- Forum: DS/DSi Development
- Topic: BG flicker problem
- Replies: 4
- Views: 12272
Re: BG flicker problem
you want to update the map and scroll position during vblank. your code waits for vblank after the updating the map and scroll position.
EDIT: of course you are probably going to have issues trying to read that much data from disk during vblank.
EDIT: of course you are probably going to have issues trying to read that much data from disk during vblank.
- Sun Dec 02, 2012 12:56 am
- Forum: DS/DSi Development
- Topic: need help allocating and copying sprite tiles efficiently
- Replies: 14
- Views: 41962
Re: need help allocating and copying sprite tiles efficientl
Don't forget to flush data cache before dma. You should be able to find an optimized asm memcpy if you search this forum. It seam to remember that it may be best at main to main copies. It may require aligned buffers but so does dma.
- Wed Nov 28, 2012 3:32 pm
- Forum: DS/DSi Development
- Topic: need help allocating and copying sprite tiles efficiently
- Replies: 14
- Views: 41962
Re: need help allocating and copying sprite tiles efficientl
not sure if this has already been mentioned, but DMA copies are best for main ram to vram copies. main ram to main ram copies do not perform as well with DMA copies.
- Tue Nov 13, 2012 10:19 pm
- Forum: devkitARM
- Topic: Odd behaviour of the compiler when using loops
- Replies: 4
- Views: 11553
Re: Odd behaviour of the compiler when using loops
Well, that explains everything! It must have been a mistake in the example then - thank you for the fast response! I take it that I can still use commas to separate expressions that I want to use together? Like:
for(i=0;i<5;i++, foo--){...}
Sorry for not checking myself - I'm on mobile so I can't ...
for(i=0;i<5;i++, foo--){...}
Sorry for not checking myself - I'm on mobile so I can't ...
- Tue Nov 13, 2012 8:28 pm
- Forum: devkitARM
- Topic: Odd behaviour of the compiler when using loops
- Replies: 4
- Views: 11553
Re: Odd behaviour of the compiler when using loops
you are not quite right...
more like this
it works like this
is not validfor(i=0;i<6;i+2){...}
more like this
Code: Select all
for(initialize;condition;evalute after each loop before condition) {
//do stuff
}
Code: Select all
initialize;
while(condition) {
//do stuff
evalute after each loop before condition
}
- Thu Nov 08, 2012 12:35 am
- Forum: libfat
- Topic: loading textured models from fat?
- Replies: 7
- Views: 51913
Re: loading textured models from fat?
glTexImage2D and glCallList do not take filenames as parameters. where you are specifying filenames they are actually looking for buffers where the data representing the object have been loaded. look at the libfat examples for how to read data from files. of course this assumes that the data in the ...