Continued thread from last night, RE: perf issues in debug found operator[] on my math vector types. #gamedev thead
-
Näytä tämä ketju
-
Turns out I already removed the bounds checking from the vector struct's operator[]. Reduces confidence in this being a solvable issue...
1 vastaus 0 uudelleentwiittausta 0 tykkäystäNäytä tämä ketju -
outside of just writing SSE functions. But at least I'm going to try just accessing the data directly (it's public anyway).
1 vastaus 0 uudelleentwiittausta 1 tykkäysNäytä tämä ketju -
For context, here is a snippet of the relevant code where I am spending most of my frame time.pic.twitter.com/NY8XnGsDa3
1 vastaus 0 uudelleentwiittausta 1 tykkäysNäytä tämä ketju -
(obviously there's more to the struct than this, but I'm getting rid of things not relevant)
1 vastaus 0 uudelleentwiittausta 0 tykkäystäNäytä tämä ketju -
Worth noting that I access the operator[] so much because my functions are generally implemented like this:pic.twitter.com/AmGgYBCqZ8
2 vastausta 0 uudelleentwiittausta 0 tykkäystäNäytä tämä ketju -
Vastauksena käyttäjälle @tloch14
Are you compiling with stack checking or something that is triggering with the extra function calls?
1 vastaus 0 uudelleentwiittausta 0 tykkäystä -
Vastauksena käyttäjälle @rob_brink
Not sure what you mean. In Debug, it's just going to call operator[].
2 vastausta 0 uudelleentwiittausta 0 tykkäystä -
Vastauksena käyttäjälle @tloch14
You also could use pragma to turn on optimizations for just a couple functions
1 vastaus 0 uudelleentwiittausta 0 tykkäystä
Based on my results (I'll post in another tweet) I think that's going to be my best bet. Basically nothing helped debug perf much.
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.