Does anyone know the reasons behind the sprinkled use of _fastcall throughout the code? -- "The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download <http://www.xmission.com/~legalize/book/download/index.html> Legalize Adulthood! <http://blogs.xmission.com/legalize/>
Rich asked:
Does anyone know the reasons behind the sprinkled use of _fastcall throughout the code?
An attempt at code speedups. After a little research I was suprised to see that the keyword is still supported in Microsoft compilers. __fastcall: first 2 args are passed in registers, function pops args. Remaining parameters are passed left to right. and: http://support.microsoft.com/kb/100832 Got the CD with Visual STudio, thanks. I'll have a look. Tim
In article <4583FD7F.32523.909DCA@twegner.swbell.net>, "Tim Wegner" <twegner@swbell.net> writes:
Rich asked:
Does anyone know the reasons behind the sprinkled use of _fastcall throughout the code?
An attempt at code speedups. [...]
Was any performance difference noticed, or was it just sprinkled around the source in hopes of a speedup? -- "The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download <http://www.xmission.com/~legalize/book/download/index.html> Legalize Adulthood! <http://blogs.xmission.com/legalize/>
Rich asked:
Was any performance difference noticed, or was it just sprinkled around the source in hopes of a speedup?
It did make a difference, which is not to say that all the calls are equally important, or that the speedup will still be noticed in the new environment. My opinion is that you are not duty bound to preserve _fastcall, though if it is still supported and doesn't cause a problem I'd suggest leaving them in for now. Tim
In article <45841BD7.21410.1072849@twegner.swbell.net>, "Tim Wegner" <twegner@swbell.net> writes:
My opinion is that you are not duty bound to preserve _fastcall, though if it is still supported and doesn't cause a problem I'd suggest leaving them in for now.
That was the same thing I thought after looking it up in the help and seeing it was still supported. -- "The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download <http://www.xmission.com/~legalize/book/download/index.html> Legalize Adulthood! <http://blogs.xmission.com/legalize/>
participants (2)
-
Richard -
Tim Wegner