#100583 - Valmond - Mon Aug 28, 2006 9:08 pm
Hi everybody!
I'v got this little game I'm trying to program, and I just
added a Backpack & an Equipment screen.
I also got Icons to click to toggle those screens (you can also use buttons),
this works by changing tileset & map and stream the new tiles into VRAM.
(the screens are just tile-maps so I keep the same video mode).
The thing is that if I use a button (ex. push Y) to switch, it works well
(in emu and on hardware), with the pen though, the DS freezes (emulator
works okay).
I'v clicked like mad with the button, it works perfectly.
If I push the button and just click anywhere on the touchscreen, it freezes too.
Well, I came to the conclusion that I'm doing something bad when
the pen gets read but I'm kind of stuck here. I don't even
know if the read is made by an interrupt and/or if that takes
long time or whet else might crash because of VRAM copies...
BTW I'm not using DMA copy.
So if anyone has an idea of what might be crashing the program feel free
to share any thoughts :)
thanks
/Valmon
_________________
N?fer & LudLib
I'v got this little game I'm trying to program, and I just
added a Backpack & an Equipment screen.
I also got Icons to click to toggle those screens (you can also use buttons),
this works by changing tileset & map and stream the new tiles into VRAM.
(the screens are just tile-maps so I keep the same video mode).
The thing is that if I use a button (ex. push Y) to switch, it works well
(in emu and on hardware), with the pen though, the DS freezes (emulator
works okay).
I'v clicked like mad with the button, it works perfectly.
If I push the button and just click anywhere on the touchscreen, it freezes too.
Well, I came to the conclusion that I'm doing something bad when
the pen gets read but I'm kind of stuck here. I don't even
know if the read is made by an interrupt and/or if that takes
long time or whet else might crash because of VRAM copies...
BTW I'm not using DMA copy.
So if anyone has an idea of what might be crashing the program feel free
to share any thoughts :)
thanks
/Valmon
_________________
N?fer & LudLib