Continued thread from last night, RE: perf issues in debug found operator[] on my math vector types. #gamedev thead
Worth noting that I access the operator[] so much because my functions are generally implemented like this:pic.twitter.com/AmGgYBCqZ8
-
-
At first this looks pretty terrible, but in release this becomes SSE. Give me a moment to find an old godbolt for evidence of that.
Näytä tämä ketju -
Relevant godbolt. This is comparing using alignas vs not and how the compilers handle it.https://twitter.com/tloch14/status/878274351476252673 …
Näytä tämä ketju -
After removing operator[] and accessing directly, no noticeable FPS difference. Time to see what the profiler tells me.
Näytä tämä ketju -
Uusi keskustelu -
-
-
Are you compiling with stack checking or something that is triggering with the extra function calls?
-
Not sure what you mean. In Debug, it's just going to call operator[].
- Näytä vastaukset
Uusi keskustelu -
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.