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

AX: use AVX2 to save some CPU time #12745

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft

Conversation

Tilka
Copy link
Member

@Tilka Tilka commented Apr 28, 2024

Based on #10663.

Not 100% equivalent to the C version, rounding and clamping differ but this should be inaudible.

This fixes e.g. the overly loud wind in "I SPY: Spooky Mansion".
NFC because the current code always masks the volume + volume_delta sum
to 16 bits.
const u16* src = (const u16*)&pb;
memory.CopyToEmuSwapped<u16>(addr, src, sizeof(pb));
#endif
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about adding this as a specialization of CopyToEmuSwapped instead? That way the ifdefs can be in just one location, in Common.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants