Register
Handmade Hero»Forums»Code»Latest source slow performance
Cristián Donoso
6 posts
Latest source slow performance
2 months, 4 weeks ago Edited by Cristián Donoso on July 26, 2019, 7:50 a.m. 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
1979 posts / 1 project
Latest source slow performance
2 months, 4 weeks ago
Did you change -Od to -O2 to enable compiler optimizations?