Turns out I already removed the bounds checking from the vector struct's operator[]. Reduces confidence in this being a solvable issue...
-
-
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).
Nä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
Näytä tämä ketju -
(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.