[Bf-committers] Expanding the layers in Blender

David Bryant aceone at bellsouth.net
Wed Dec 19 03:28:15 CET 2007


The number you get when shifted is so large, it's hard for any compiler code 
to swallow.Just try it.
An array of ints are better.
----- Original Message ----- 
From: "Timothy Baldridge" <tbaldridge at gmail.com>
To: "bf-blender developers" <bf-committers at blender.org>
Sent: Tuesday, December 18, 2007 5:01 PM
Subject: Re: [Bf-committers] Expanding the layers in Blender


> "As mentioned in a previous post,bit fields to flag as layer numbers are 
> no
> good after you shift past 1<<31"
>
> I tried finding this in my archives here, but I could not. So please
> explain, why are they useless. What was wrong with the example I gave?
> All you need is a bitfield 8 ints long, and then loop it when it comes
> time to render. Create a global linked list with each item having a id
> for the layer they represent, and a string for the name.
>
> There's no reason to not use bitfields. They are fast efficient, and
> will be heavily optimized by the compiler.
>
> Timothy
> _______________________________________________
> 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