I'm currently developing a 3D engine entirely in Python that handles everything from basic rendering to textures and map creation without relying on any external APIs like OpenGL or DirectX. Right now, I'm using OpenGL for simple 2D line rendering, since it works well with C++ and runs on the GPU. I'm at the stage where I can render wireframe 3D objects, move and scale them, but I've hit a performance wall—getting just 10 FPS with a simple wireframe sphere has me questioning if I should switch to C++ for rendering.
5 Answers
Using Python can be useful for prototyping or educational projects. But for anything production-ready, I’d recommend using C or C++ to handle the heavier lifting, while keeping the Python for higher-level scripting.
I built a simple 3D engine using Python! Check out my work [here](https://github.com/ViciousSquid/RStudio). It’s more about learning than hitting performance targets, though.
Building a 3D engine completely in Python might be intriguing for small projects or learning purposes, but honestly, Python just doesn’t deliver the performance needed for serious applications. You’ll likely hit limitations pretty quickly.
Sure, building your engine in Python is a good challenge! Just use that 10 FPS as motivation to learn how to optimize as much as possible. Remember, tons of others have done similar things in Python and managed to create fun experiences.
If you're looking to really use the GPU, you’ll need to rely on APIs like Vulkan, DirectX, or OpenGL. While prototyping is fine, expect a huge time investment if you want to compete with engines like Unity or Unreal.

Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically