lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


This is a little off topic, but I thought I'd add a little note on
precision.

If you're using Direct3d, the default behavior will *definitely* trash the
FPU status word (specifically, it changes the precision to 24 bits for
speed).  If you're using doubles, you *must* init your d3d device with
FPU_PRESERVE.

I chose to change Lua to use floats rather than change the FPU back and
forth.