Uploaded March 2025 | Updated September 2026, 2 days ago
The last time I played with raycasting in SGDK, there were some serious bugs that I couldn't work around. So I gave up and deleted the videos. This version is still based on Lode's tutorial (lodev.org/cgtutor/raycasting.html) for the DDA and GameHut's mirrored texture code to draw the columns.
I've replaced as much multiplication and division that I can with LUTs and tried to avoid un-necessary operations when drawing the columns. Frame rates have improved from 6-15 FPS to 15-20 FPS. If I can get a few sprites in without killing the frame rate I'll try getting it to work with the Retro.Link netcode. If that doesn't work, it'll end up in some other game.
The last time I played with raycasting in SGDK, there were some serious bugs that I couldn't work around. So I gave up and deleted the videos. This version is still based on Lode's tutorial (lodev.org/cgtutor/raycasting.html) for the DDA and GameHut's mirrored texture code to draw the columns.
I've replaced as much multiplication and division that I can with LUTs and tried to avoid un-necessary operations when drawing the columns. Frame rates have improved from 6-15 FPS to 15-20 FPS. If I can get a few sprites in without killing the frame rate I'll try getting it to work with the Retro.Link netcode. If that doesn't work, it'll end up in some other game.

