Handmade Hero » Forums » Code » Latest source slow performance
cristiandonosoc
Cristián Donoso
6 posts
#21331 Latest source slow performance
3 weeks, 5 days 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?
mmozeiko
Mārtiņš Možeiko
1967 posts / 1 project
#21333 Latest source slow performance
3 weeks, 5 days ago

Did you change -Od to -O2 to enable compiler optimizations?