[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: surface cdata property restricted to double or uint8
From: |
John W. Eaton |
Subject: |
Re: surface cdata property restricted to double or uint8 |
Date: |
Mon, 30 Aug 2010 00:35:00 -0400 |
On 30-Aug-2010, Shai Ayal wrote:
| Maybe I'm misunderstanding the original code, but doesn't it also
| convert the whole array to double? In this case we loose no
| performance by converting beforehand when compared to the original
| code.
Yes, but since the conversion happens for only one element at a time,
it requires less memory. Converting the whole array at once requires
twice the storage of a single precision array for the temporary
variable. The current code only requires 8 additional bytes.
jwe
- surface cdata property restricted to double or uint8, John W. Eaton, 2010/08/27
- Re: surface cdata property restricted to double or uint8, Shai Ayal, 2010/08/29
- Re: surface cdata property restricted to double or uint8, John W. Eaton, 2010/08/29
- Re: surface cdata property restricted to double or uint8, Shai Ayal, 2010/08/30
- Re: surface cdata property restricted to double or uint8,
John W. Eaton <=
- Re: surface cdata property restricted to double or uint8, Shai Ayal, 2010/08/30
- Re: surface cdata property restricted to double or uint8, Jaroslav Hajek, 2010/08/30
- Re: surface cdata property restricted to double or uint8, John W. Eaton, 2010/08/30
- Re: surface cdata property restricted to double or uint8, Michael Goffioul, 2010/08/30
- Re: surface cdata property restricted to double or uint8, Jaroslav Hajek, 2010/08/30
- Re: surface cdata property restricted to double or uint8, Michael Goffioul, 2010/08/30
- Re: surface cdata property restricted to double or uint8, Jaroslav Hajek, 2010/08/30
- Re: surface cdata property restricted to double or uint8, Michael Goffioul, 2010/08/30
- Re: surface cdata property restricted to double or uint8, Jaroslav Hajek, 2010/08/30
- Re: surface cdata property restricted to double or uint8, Michael Goffioul, 2010/08/30