flat assembler
Message board for the users of flat assembler.

Index > Windows > AGI ?! FPU and OpenGL Radial blur tutorial in FASM

Author
Thread Post new topic Reply to topic
Tyler Durden



Joined: 24 Feb 2004
Posts: 50
Tyler Durden
Hi there Smile I'm writing OpenGL tutorial in FASM 'bout Radial Blur. But it's too slow (on my GeForce 4 SE) ? Why ? So render 25 textured quads is too hard ? There is some code (variables used to stretch blur texture)
Code:
;fldz
fld  [blurDelta]
fadd [blurInc]
fstp [blurInc]
fld  [blurDec]
fsub [blurDelta]
fstp [blurDec]
fld  [blurAlpha]
fsub [alphaDelta]
fstp [blurAlpha]    

If I uncomment fldz, the speed is greatle increased (why ?) but blur size is decreased Sad Full source attahed... HELP !


Description:
Download
Filename: rblur.rar
Filesize: 16.64 KB
Downloaded: 187 Time(s)

Post 08 May 2004, 21:09
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
scientica
Retired moderator


Joined: 16 Jun 2003
Posts: 689
Location: Linköping, Sweden
scientica
fldz... hmm (thinks), isn't doesn't that push 0 to the fp stack? (st0 = 0.0f )
Maybe you should try mmx? (I've seen some examples where many pixels are processed at once)

(note: I put the code in yur post inside [ code ] tags - makes it easier to read code)
Post 09 May 2004, 16:30
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
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
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.