Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TexCache: Improve QuickTexHash a little, cleanup ARM64 defines #13353

Merged
merged 5 commits into from
Aug 29, 2020

Conversation

unknownbrackets
Copy link
Collaborator

@unknownbrackets unknownbrackets commented Aug 29, 2020

This may help #13150, because it makes ARM64 define usage more consistent.

The speedup for QuickTexHash will mostly only be present without lazy texture hashing enabled, and then will be fairly small. The hash time itself is most improved on arm64 by 4%. On iOS it should improve by ~1.6%. My handcoded NEON implementation remains 1.4% faster than the compiler, so there's no change there - but this gap is much better than it was years ago.

Times again tested on 1024 bytes of data (i.e. 16x16 32 bit texture or 32x32 CLUT8 texture.)

-[Unknown]

Improvement is greater on 64-bit (4.3%) than 32-bit (1.6%.)
Now that the speed is closer, disable on non-ARMV7 so we can avoid wrong
compilations more often.
If it's specified, but incorrect, we would compile incorrectly.  We're
moving away from it anyway.
Was barely used anymore, and some users are specifying it when it's not
the case, so better to detect consistently.
Was not used anymore, but was defined incorrectly in some armv8 files.
@unknownbrackets unknownbrackets added this to the v1.11.0 milestone Aug 29, 2020
@hrydgard hrydgard merged commit e33c31e into hrydgard:master Aug 29, 2020
@unknownbrackets unknownbrackets deleted the texcache branch August 29, 2020 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants