Continued thread from last night, RE: perf issues in debug found operator[] on my math vector types. #gamedev thead
-
-
(obviously there's more to the struct than this, but I'm getting rid of things not relevant)
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
Näytä tämä ketju -
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 -
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.