Xblog.org

>> Home


Locations of visitors to this page

04 December 2007

Humble pie

I got a post back from Paul Re:The subtle art of code conversion.

Neil optimised that for me. Sequencing the C code like that causes the resultant assembler code to make much better use of the registers (back then, on 486 processors, the 1st 4 registers were MUCH faster than the others - the sprite functions were 486 optimised). I wrote something along the lines of your code originally and it turned out to use more registers and thus slow down the function call. It's a bit beyond my knowledge level, but Neil assured me it would work and it did cut down map loading times a lot. I can't remember why the bytes had to be swapped but I think it was a DOS thing.

So By way of an appolagee, Paul I'm sorry for calling you a git.

NEIL YOUR A GIT!
4 Hours I spent trying to work out why I was getting numbers that were too big.

Labels: ,

posted by Dave Henry at  

0 Comments:

Post a Comment

Links to this post:

Create a Link