[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Advantages of Lua using 'floats' over Lua using 'doubles'
- From: Jose Marin <jose_marin2@...>
- Date: Tue, 4 Jul 2006 14:47:35 +0000 (GMT)
I will use heavilly Lua interfacing with graphics
libraries (Direct3D/OpenGL), and the double/float
conversions could impact on performance, right:
By the way, are you guys using Lua as float or double?
--- Robert Osfield <robert.osfield@gmail.com>
escreveu:
> On 7/4/06, Jose Marin <jose_marin2@yahoo.com.br>
> wrote:
> > Yes, I'm asking the performance of games on PCs.
>
> In general I'd expect Lua apps not to be sensitive
> to float vs doubles
> on PC's. However, write a prototype app and
> benchmark it, it the sure
> fire way of finding out.
>
> Graphics hardware is all floats so if you are
> planning on passing data
> from Lua to it then there will be conversions going
> on, however, one
> would typically wrap all the low graphics API calls
> in C or C++ so
> this may well be a moot point.
>
> Robert.
_______________________________________________________
Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre seu aparelho agora!
http://br.mobile.yahoo.com/mailalertas/