News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

OPTIMALIZATON

Started by shaldan, October 14, 2005, 01:31:31 PM

Previous topic - Next topic

shaldan

I saw MACRO CFLT here in functions like glVertex3f, CFLT(-1.0), CFLT(1.0), CFLT(0.0)
and I wondered if there is a speed (or storage) difference between using this macro or simply using declared variable in such functions.

for examples:

.data
Val1         dd 1.0
Valm1                 dd -1.0
.code
invoke glVertex3f,Valm1,Val1,Val1

thanks

p.s. thanks GOD and Randall Hyde for his books :)

hitchhikr

No speed difference but same floating points will be duplicated when using the macro.

shaldan

thank you very much for the answer ....
it is amazing what can be done with openGl by one man ..... (just watching your demos :)))
How many years? :) are needed to achieve such mastery ? I am new to openGl and little experienced in MASM....
and 1kb demo is black magic stuff for me :)

hitchhikr


RedXVII

Hehehe, all round praise. Good work indeed.

I have a feeling this section is getting a bit more popular  :U