harder better faster stronger!!! [can you feel the fuzz!!!]

This is a discussion on harder better faster stronger!!! [can you feel the fuzz!!!] within the A Brief History of Cprogramming.com forums, part of the Community Boards category; do my homework IV me plz... need to make super fast!!! you'll get what i'm trying to do [fuzzing] but ...

hmm... yes i'd say it is because the majority of programers who've gotten past the syntax part of programming, and also visit the boards, view here... also it's more open-ended, although still about code...

oh, and i don't know asm... is there some structural design flaw i'm missing?

i meant the order of the function's statements... perhaps there's a better method of video fuzzing while maintaining acceptable results... note that i'd want to call this function for dimensions of approximately 26k pixels every second... more if possible... any help there? thanks...

Let's say your character 'cell' is 10x10. You need to find how far into the cell you are on x and y. So 5,5 would be .5,.5 or half way into the cell on x and y. Then you call your bilinear filter. Using this method the bilinear would have to be in assembly

This is a very fast bilinear interpolation using the FPU. You can do the same in C but it is not nearly as fast. In my real-mode voxel engine this operation is done at least a 1000 times in the render and I still get a great frame rate in 320x200x16 bit.

So for blurring text this operation would be very fast. It might be able to be optimized a bit farther (as all assembly programs probably could be) but I've not done it since it gave acceptable results.

You could also use this to create text that started in one color and smoothly translated to another, although you could also do that with one linear interpolation between the starting color and the ending color. The floating value would be how far into the text string you are (in pixels) divided by the total length of the string (in pixels). This could be pre-computed, set start color to left color value, iterate and increase color RGB's by pre-computed RGB steps.

The bilinear function would allow you to create radiant blend test strings also.

I've looked into the DJGPP Info files concerning assembly and have found the information needed to use the FPU in DJGPP so you can do this in protected mode also. You will be clobbering a lot of registers and also memory but it can be done.