I've read some tutorials on how to implement a raycaster and just implemented one in Rust for the Firefly Zero retro game xonsole.
It's still way too slow to run on the actual device, but I'm planning on trying out other implementations that are hopefully less resource intensive.