Inside3D!
     

ASM Sources!!!!!!!!!!!!!!!!!!!!!!

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> Engine Programming
View previous topic :: View next topic  
Author Message
Stroggos



Joined: 14 Apr 2009
Posts: 43

PostPosted: Thu Sep 10, 2009 7:28 am    Post subject: ASM Sources!!!!!!!!!!!!!!!!!!!!!! Reply with quote

How would I go about getting rid of these ASM source files in GLQuake
_________________
Dont even try to port Quake 4 to the ipod
Back to top
View user's profile Send private message
Spirit



Joined: 20 Nov 2004
Posts: 476

PostPosted: Thu Sep 10, 2009 9:12 am    Post subject: Reply with quote

REWRITE THE CODE TO NOT USE ASM!!!!!!!!!!!!!!!!!!!!!!

edit: Heh, same number of exclamation marks. Must be the threshold of sanity there.
_________________
Quake Maps
Back to top
View user's profile Send private message Visit poster's website
metlslime



Joined: 05 Feb 2008
Posts: 177

PostPosted: Thu Sep 10, 2009 9:23 am    Post subject: Reply with quote

it's pretty easy -- there are about a dozen ASM functions in the glquake source. Of those, only about a third are necessary and they all have C replacements, another third have C replacements that are empty (i.e. not needed at all, they just set some flags on the CPU), and the last third are never actually called.

So you just use the C versions for the first category, and rip out the second and third categories entirely.
Back to top
View user's profile Send private message
Spike



Joined: 05 Nov 2004
Posts: 944
Location: UK

PostPosted: Thu Sep 10, 2009 11:31 am    Post subject: Reply with quote

yeah, the assembler code is entirely optional.
its slightly faster, but tbh that's more because it has a better algorithm in a few places (its not 100% identical to the C code). Of course, that really only affects the sw renderer.
Just remove the files and then figure out how to enable the C versions of the functions.
_________________
What's a signature?
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> Engine Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group