[Bf-committers] FLT_MAX and INT_MAX in UI

Doug Hammond doughammond at hamsterfight.co.uk
Fri Jan 21 18:45:50 CET 2011


Hi,

Please also bear in mind addons that have peoperties for external
applications which may require values of a larger range than normally needed
inside Blender.

Any reason why ints can't be the full 32bit ?

Cheers,
Doug.


On 21 January 2011 17:38, Brecht Van Lommel <brechtvanlommel at pandora.be>wrote:

> 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.
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>


More information about the Bf-committers mailing list