lua-users home
lua-l archive

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


D3D does and I'd not be surprised if Direct Sound benefited from this
either. You can just test for where FPU flags are inside some vanilla
running D3D app or/and Direct Sound app.

-----Original Message-----
From: lua-bounces@bazar2.conectiva.com.br
[mailto:lua-bounces@bazar2.conectiva.com.br] On Behalf Of Robert Osfield
Sent: Friday, May 26, 2006 1:16 AM
To: Lua list
Subject: Re: D3DCREATE_FPU_PRESERVE


On 5/25/06, Bilyk, Alex <ABilyk@maxis.com> wrote:
> DirectX switches the FPU to single precision by default [at least used

> to]. So, even though Lua number is defined as double, all one has to 
> work with is 23 bits of precision.

Is it all the DirectX components that do this?  Or is it just limited to
the likes of Direct3D?

I am curious, has an OpenGL implementations be known to do anything
similiar?

I have been using OpenGL since the mid nineties and haven't a problem
like this yet, but then I still mainly work under unices of various
flavours.  I do have quite a few users of my software  under Windows and
haven't heard reports of problems yet, but it sure be nice to know if
the OpenGL driver does it to so I can plan hacks around...

Cheers,
Robert.