Handmade Hero»Forums»Code
Cristián Donoso
6 posts
Latest source slow performance
Edited by Cristián Donoso on Reason: Initial post
Hey everyone,

I downloaded the source/assets for the first time.
It compiled fine and took its sweet time on the black screen processing the assets.

After that the game runs but at an appalling ~3 fps. Using the timing overlay (F5), it says that lighting propagation takes ~98% of the time. I tried fiddling with some of the debug switches, but nothing really works. Also set -DHANDMADE_SLOW to 0, but still.

In the stream the game runs fast. I'm running on a pretty good machine, so I must be holding something wrong. (Windows 10/Visual Studio Community 2019).

Anyone got any pointers?
Mārtiņš Možeiko
2561 posts / 2 projects
Latest source slow performance
Did you change -Od to -O2 to enable compiler optimizations?