Go back to using DMA for sprites

This commit is contained in:
Gwilym Kuiper 2022-07-21 20:52:07 +01:00
parent c2a4845a2e
commit 8df9f4b5c4

View file

@ -799,13 +799,11 @@ impl SpriteControllerInner {
};
unsafe {
dest.as_ptr()
.copy_from_nonoverlapping(sprite.data.as_ptr(), sprite.data.len());
// dma::dma_copy16(
// sprite.data.as_ptr().cast(),
// dest.as_ptr().cast(),
// sprite.data.len() / 2,
// );
dma::dma_copy16(
sprite.data.as_ptr().cast(),
dest.as_ptr().cast(),
sprite.data.len() / 2,
);
}
let storage = Storage::from_sprite_ptr(dest);