[Bf-committers] FLT_MAX and INT_MAX in UI

Brecht Van Lommel brechtvanlommel at pandora.be
Fri Jan 21 18:38:39 CET 2011


Hi,

On Fri, Jan 21, 2011 at 5:50 PM, Ton Roosendaal <ton at blender.org> wrote:
> I'd suggest to replace these 'hard' min/max values with less extreme
> numbers, so you can still use it in C code and get some predictable
> output.
>
> FLT_MAX now is 3.40282347e+38F
> Our hardmax  can easily stick to 1.0e+9 i guess? (a billion)
>
> For ints, a max of 1<<26 or so... 67 million, with 24 fps, that would
> last 5 years :)

Yes, makes sense. It's a bit arbitrary, but 1e9 seems low, maybe make it 1e15?

Brecht.


More information about the Bf-committers mailing list