June 2021
Beginner
344 pages
8h 9m
English
In previous chapters, you compiled and ran your game in debug mode. Debug mode adds extra information to your executable (or .pdb file on Windows), mapping machine code to Rust code, allowing you to run the program inside a debugger and watch program state changes. Debug mode also disables many compiler optimizations that can make your game run faster; these optimizations might combine or remove parts of your code, making it confusing to debug. Since you aren’t expecting your players to debug the game, you can take advantage of these optimizations in a Release build.
Why Not Always Run Release Mode? | |
|---|---|
|
|
Release ... |
Read now
Unlock full access