Skip to content

Conversation

@hrydgard
Copy link
Owner

@hrydgard hrydgard commented Sep 24, 2023

Not all games use indexed draws at all, but should be a small boost for those that do and draw a lot of geometry.

Although I noticed I was getting pmaxuw instructions on my machine, which are SSE4.1. Should the compiler really generate those? Weird! (MSVC)

@hrydgard hrydgard added this to the v1.17.0 milestone Sep 24, 2023
@fp64
Copy link
Contributor

fp64 commented Sep 24, 2023

Should the compiler really generate those?

Is it MSVC? Concerning either way.

@fp64
Copy link
Contributor

fp64 commented Sep 24, 2023

Ok, I can reproduce MSVC getting pmaxuw without SSE4: https://godbolt.org/z/KshjqTGGx, but it seems to be doing run-time detection, so it may be fine?

@hrydgard
Copy link
Owner Author

Oh, I didn't read the disassembly very carefully (I just breakpointed and "show disassembly" in MSVC itself, which produces rather hard-to-read output). If it's runtime detected it's good.

@hrydgard hrydgard marked this pull request as ready for review September 24, 2023 22:45
@hrydgard hrydgard merged commit cf48532 into master Sep 29, 2023
@hrydgard hrydgard deleted the get-index-bounds-autovec branch September 29, 2023 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants