Using tracing to profile a Bevy project

Bevy is an open-source game engine built with Rust. It uses the Entity Component System (ECS) paradigm to simplify building performant parallel games. When building games dealing with large numbers of entities in parallel, performance problems are common. I have recently encountered these problems with rustcraft, a voxel project that I’m now building with Bevy. Read A Minecraft Experiment with Rust and OpenGL for more details on that. This is a short introduction to tracing and how it can be used to track down and fix performance problems in your Bevy project....

June 9, 2024 · 4 min

A Minecraft experiment with Rust and OpenGL

Towards the end of 2021, I started making a Minecraft-like game from scratch using Rust and OpenGL. It’s unfinished, but I’ve made it open-source. In this article, I will walk you through the journey and explain how the following techniques can squeeze performance out of your GPU: Batching View frustum culling Occlusion culling LODs First of all, why Minecraft? Minecraft introduced me to Java (and programming in general) over 10 years ago....

February 27, 2023 · 7 min