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

Stop marking R0-R31 as needing interrupt checks #64

Merged

Conversation

DerelictDrone
Copy link
Member

For R0-R31 being used as a register, previously it would do an interrupt check as if it were a memory access, this will no longer be the case and R0-R31 access (as registers, not using them for memory access) will no longer use interrupt checks, bringing them to an equal performance as using the regular(EAX, EBX, etc.) registers.

@DerelictDrone
Copy link
Member Author

Using ZVM Test Suite's Benchmarking

5 runs without this change (Avg across the 5 runs showed 3.549 seconds)
gmod_jEH5KFYFEG

5 runs with this change (Avg across the 5 runs showed 3.293 seconds)
gmod_LH1hbqBsnS

Seems like an average speed increase of 7% (ran in-game, dedicated server may show different)

@DerelictDrone DerelictDrone merged commit 5efb2a5 into wiremod:master Aug 26, 2024
1 check failed
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