Like the DMEM, you can replace the IMEM at any time. In this case, when you're done with processing a block of music, you can DMA the code for 3d transforms or anything else to the RSP.
Libdragon handles this transparently for you with a queue[1].
[1] https://libdragon.dev/ref/rspq_8h.html