-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance Issues due to Debug Mode #74
Comments
@desttinghim this is super interesting, thanks for the thorough analysis. it's pretty insane the effect the debug optimizations have. this was all with |
This was all with Something I should probably note is that my screen refreshes at 144hz, which is why I got 144 fps instead of 60. |
Section 3.4 states that the game is running slowly due to unbatched draw calls, but the reality is that rust's debug mode is very slow. Compiling in release mode or turning on optimizations when compiling in debug mode will make the game much faster. I added the following to make rust optimize in debug mode:
Here's a table with the performance I got with the various techniques:
I know of this technique from following (and occasionally contributing to) veloren, which is a good example of how specs can be used to make a larger game.
The text was updated successfully, but these errors were encountered: