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
GRAPHICS: Make HQx ASM scalers relocations free #3636
Conversation
This is considered as a good practice to not have relocations in text segment. The binary is now completely PIC and can easily be relocated at any address (ASLR).
Would it be possible to move the static variables |
@ccawley2011 Do you mean like this? 😉 |
it would be nice to add 64bits calling convention in future |
|
I'm not sure if it's worthy rewrite it, I mean, not sure what improvements would be. I'm just saying use it what we have at least. I guess some tunings might be required, like access to memory where it's 32bits |
Nice work making the code PIC (Position-independent)! |
This allows multiple instances to run in parallel
Merging now |
This is considered as a good practice to not have relocations in text segment.
The resulting binary is now completely PIC and can easily be relocated at any address (ASLR).
After a quick benchmark done on real game, the performance seems to be equivalent if not faster to the older assembly code.
The C++ implementation is still around 3 times slower even in x86_64 mode (so with SSE2 extensions enabled).