-
Notifications
You must be signed in to change notification settings - Fork 24
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
Remove BoxOnPlaneSide inline assembly version function and their unused slow version #27
base: master
Are you sure you want to change the base?
Remove BoxOnPlaneSide inline assembly version function and their unused slow version #27
Conversation
…ility and remove commented slow version of this function
This function is not used in mod code |
You're right. This function has never been used in most gamecode mods. But it always has been there and in all Q3 gamecode repositories. One year ago, in one of my mods, I've experienced an error when I tried to compile with The other one without inline assembly (which uses C), it's optimized for the most compilers (non MSVC). |
Essentially, this is a dead code from mod perspective, so the only correct solution - remove it from mod codebase, otherwise it is totally useless, there is no other 'but...' cases except increasing entropy of this repo |
Wait.
I guess I'll have to open a similar Pull Request on Quake3e about the optimization of this function too. EDIT: Gotta remove the |
Ok, when you agree and are ready to merge, squash commits before merging. |
Done, now the function is the same as Quake3e engine one (the enhanced). |
On BoxOnPlaneSide function, that inline assembly code can only be compiled on MSVC compiler (Microsoft Visual C++). That has been tested on
win32-msvc
solution.Previously, the code had conditional compilation directives specific to
LCC
,C_ONLY
,id386
and__VECTORC
. The refactored code provides an unified implementation that is compatible with multiple compilers.Additionally, the commit includes a comment explaining the reason for the code change and its relationship to the Kenny Edition and also removes the commented BoxOnPlaneSide2 function being the slow version which is unoptimized.