Log In  
Follow
ilovezeno

Cart #a3denginetest-0 | 2025-01-27 | Embed ▽ | License: CC4-BY-NC-SA
35


Since many interesting 3D projects have already been created on Pico-8, it's likely that 3D applications on Picotron will also attract significant interest. I'd like to share some thoughts on my recent experiments:

  1. Strategy for Textured Triangle Rendering and Userdata

Picotron's userdata is particularly intriguing for someone like me who frequently uses NumPy, even though its XY order is opposite to NumPy’s. This difference has occasionally led to subtle, hard-to-detect bugs in my code. FReDs72 has demonstrated a highly efficient triangle rendering method using userdata. I made some modifications to it, including implementing a fixed command buffer instead of generating a new one each time (as I found that creating large userdata structures is not cheap) and manually unrolling functions and optimizing structures. These changes improved performance by about 20%-30%.

[ Continue Reading.. ]

35
1 comment