pouët.net

Integer VS Fpu

category: general [glöplog]
true
added on the 2004-05-03 13:04:25 by kusma kusma
You are all missing the point. Opti is still working on qbasic and there fp/int does make a difference. *Even* on a 3GHz cpu.

It's like having to choose between a 3-speed and a 5-speed bicycle gear for his brand new Peugeot 206.
added on the 2004-05-03 13:16:40 by moT moT
BB Image
added on the 2004-05-03 13:42:07 by Shifter Shifter
altho not FPU related, but i'd like to note that HDR textures rock :)
added on the 2004-05-03 13:59:45 by Gargaj Gargaj
someone should bitchslap some sense into optimus
I'm actually using the ALU to do float calculations and the FPU for integer maths (without conversion, of course. Only pussies use FILD or FIST[P]).
added on the 2004-05-03 19:56:04 by chock chock
I agree with Shifter.
added on the 2004-05-03 21:33:03 by Optimus Optimus
and i agree with ile.
added on the 2004-05-04 02:22:32 by reed reed
Quote:
Zbs,. go on make your blobs with FPU when I can do them shitty fast with additive sprites


There are a few ways to Rome but plain additive sprites certainly is not among them.

Let's run this freak over with a truck!
added on the 2004-05-04 08:40:06 by superplek superplek
It's pretty ok if you want to do it particle style, still those don't really count as "blobs", since in common terminology, "blobs" are usually referred to MC-triangulated iso-surfaces methinx.
On the other hand, why not take a look at the DX9.0a SDK to find out a nice 2.0 shader implementation of 2D blobs? :D
added on the 2004-05-04 08:58:28 by Gargaj Gargaj
He probably meant the 2D ones, for which there also are alternatives to MC of course, plain additive sprites not being one of them ;)

added on the 2004-05-04 10:12:01 by superplek superplek
there are no alternatives to MC.
added on the 2004-05-04 10:20:06 by skrebbel skrebbel
>Let's run this freak over with a truck!

This sounds like the sequel of Optisturvat..
added on the 2004-05-04 10:55:26 by Optimus Optimus
APIs suxx.

Everything is sooo shite
I tried DDraw
I will try some PTC, perhaps it won't need 123 lines for doing stuff..

All I want is commands:

OpenWindow ()
Screen 800,600,32b
PutPixel (400,300),RGB(255,255,255)

TABs suxx
; suxx
OOP suxx

I am going back to Basic(s) :P
added on the 2004-05-04 10:58:16 by Optimus Optimus
TinyPTC rulez!!! I just went to the site to download it, watched some example test programm, it's fuckin easy with just 3 commands or something. Wow!
added on the 2004-05-04 11:28:38 by Optimus Optimus
..like BASIC!!! =)
added on the 2004-05-04 11:29:13 by Optimus Optimus
tinyptc would be nice but stuff like having a #define for windowed mode... sheesh :)
added on the 2004-05-04 11:45:59 by Gargaj Gargaj
OOP sucks! BASIC rules!
added on the 2004-05-04 12:26:28 by sagacity sagacity
OMG SAGACITY NOT YOU TOO????
added on the 2004-05-04 12:27:09 by Gargaj Gargaj
I think I've been brainwashed by the 1 or 2 messages Optimus has posted on pouet in the past few years.
added on the 2004-05-04 12:27:58 by sagacity sagacity
As Optimus said, I did some raytracing with integers and that... but it is all pure shit. It looked to be a little bit faster in a PII. But nowadays, programming 3d stuff with integers is a crazyness :). Anyway, I continue doing soft rendering and integer coding... it is just because I'm oldschool, and I don't know other way to code, but, I really know it is wasting time. Not using fpu and acceleration is a waste of computer power also. But, you know, oldschools love to waste time :)
added on the 2004-05-04 14:05:56 by texel texel
when there are two parallel processors, one should concider to code like that...


added on the 2004-05-04 16:33:19 by hfr hfr
Gargaj: why #define? you can ask your command-line or the usual question box api function...

Optimus: Beware of Floating-point. It is evil. If you code a synth someday, you could do it with floating-point, like many do, but you would have to deal with *denormalization*. It is what happens, when you multiply a small number by a small number and small number and a few times more, than you have a number so small, that floating-point cannot represent it in a normalized form. And working with these numbers is really, really fucking slow. So you would have to examine the exponent at some point, and zero out the number if it happens to be very small. Integer or fixed-point would do that for you automatically. So make your choice wisely.

There is an easy way to code in fixed-point: write a C++ class which would impersonate a fixed-point number and overload operators on it. Then you can use it like ... well, like magic! Some operations would be redundant, but they might either not be significant performance-wise, or the optimizer eliminates them in obvious cases. If you need more performance at some certain point, you can later rewrite some more complex operations per hand - but even then at least you have a working prototype and can ensure your algorithms are correct without too much effort.
added on the 2004-05-04 21:03:39 by eye eye
eye: <sarcasm>no shit????? i thought my dialogboxes were ok as well. :(</sarcasm>
my point was that _TinyPTC_ has it as a compile flag.
added on the 2004-05-04 21:25:05 by Gargaj Gargaj
eye: Um yeah, denormalization is a much worse problem than, say, integers wrapping around...
added on the 2004-05-04 22:22:18 by sagacity sagacity

login