POV-Ray : Newsgroups : povray.general : Blob max size Server Time
25 Nov 2024 23:49:31 EST (-0500)
  Blob max size (Message 1 to 4 of 4)  
From: Anthony D  Baye
Subject: Blob max size
Date: 19 Oct 2012 18:10:01
Message: <web.5081cf02fd29de1ed97ee2b90@news.povray.org>
would there be any conceivable problem with changing the maximum number of blob
components to sizeof(unsigned int)?

I mean, aside from type mismatch warnings pouring from every orifice when you
compiled unless you went through and changed the types on all the counters as
well...

Honestly, though, 1M seems a little low...

Regards,
A.D.B.


Post a reply to this message

From: clipka
Subject: Re: Blob max size
Date: 24 Oct 2012 05:55:00
Message: <5087baf4@news.povray.org>
Am 20.10.2012 00:08, schrieb Anthony D. Baye:
> would there be any conceivable problem with changing the maximum number of blob
> components to sizeof(unsigned int)?

You probably mean INT_MAX.

> I mean, aside from type mismatch warnings pouring from every orifice when you
> compiled unless you went through and changed the types on all the counters as
> well...

That. A thorough review of the blob code would be needed to determine 
the possible maximum value.

There's at least on statement suggesting that MAX_BLOB_COMPONENTS should 
be lower than INT_MAX/7.

Other code suggests that MAX_BLOB_COMPONENTS should be lower than any of 
the following expressions:

   SIZE_MAX/(7*sizeof(double))
   SIZE_MAX/(2*sizeof(BSPHERE_TREE))
   SIZE_MAX/sizeof(Blob_Interval_Struct)

And that's just what a superficial review reveals.


> Honestly, though, 1M seems a little low...

640k should be enough for everybody...


Post a reply to this message

From: Stephen
Subject: Re: Blob max size
Date: 24 Oct 2012 08:40:01
Message: <web.5087e0ea804df1e1f2eb76540@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:

>
> 640k should be enough for everybody...

LOL.


Post a reply to this message

From: Thomas de Groot
Subject: Re: Blob max size
Date: 24 Oct 2012 10:45:02
Message: <5087feee$1@news.povray.org>
On 24-10-2012 11:54, clipka wrote:
> 640k should be enough for everybody...
>

You are too good, sir  :-)

Thomas


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.