Noticed my debug code was way slower than release. I expect slower, but not this much this early on in the project. #gamedev thread
-
Näytä tämä ketju
-
Profiled. Found that lots of time was spent in math::vector[]. Most of my vectors are optimized with SSE in release. But in debug... man.
1 vastaus 0 uudelleentwiittausta 0 tykkäystäNäytä tämä ketju -
Not yet sure if it's because of the extra function (rather than direct access, ie http://v.data []) or if just that slow in debug.
1 vastaus 0 uudelleentwiittausta 0 tykkäystäNäytä tämä ketju -
Guess I'll find out tomorrow when I try it. Expect something about it tomorrow. For now, sleep.
1 vastaus 0 uudelleentwiittausta 0 tykkäystäNäytä tämä ketju -
Vastauksena käyttäjälle @tloch14
Are you using std::array? Amazingly slow in debug. Never looked very deeply to see how much avoidable though. Bounds checking costs
1 vastaus 0 uudelleentwiittausta 0 tykkäystä -
Vastauksena käyttäjälle @Atrix256
I don't use the std library. This is for math vectors. Not array-like vectors. (Which if you ask me, should just be called arrays).
1 vastaus 0 uudelleentwiittausta 0 tykkäystä -
But fwiw, I do bounds check on my math::vector subscript operator. Could be hurting my debug perf.
2 vastausta 0 uudelleentwiittausta 0 tykkäystä
Oh I think I misunderstood? I don't use std::array internally in my math::vector class. Just T_Type data[T_Size]. Ie: float data[4].
Lataaminen näyttää kestävän hetken.
Twitter saattaa olla ruuhkautunut tai ongelma on muuten hetkellinen. Yritä uudelleen tai käy Twitterin tilasivulla saadaksesi lisätietoja.