POV-Ray : Newsgroups : povray.general : prase error on WinXp : Re: prase error on WinXp Server Time
23 Apr 2024 04:50:21 EDT (-0400)
  Re: prase error on WinXp  
From: Alain Martel
Date: 5 Jan 2023 09:57:06
Message: <63b6e542$1@news.povray.org>
Le 2023-01-04 à 16:27, Cousin Ricky a écrit :
> On 2023-01-04 15:27 (-4), Leroy wrote:
>> I ran this with POV3.7 on my Xp 32bit and it crashed half way through
>> with a cannot parse Error.
>>
>> #declare Thing=box{-1,1}
>> #for(i,-2048,2048)
>>   #for(j,-2048,2048)
>>     object{Thing pigment{rgb 1} translate <i,j,0> }
>>   #end
>> #end
>>
>> That computer has about a gig of memory.
>>
>> [snip]
>>
>> I ran it with POV3.7 on my windows 10 64bit and it ran fine.
>> This computer has about 8 gig of memory.
> 
> You are asking for 16,785,409 objects.  Unfortunately, POV-Ray 3.7 does
> not give memory statistics, so I converted your scene to POV-Ray 3.6,
> and ran it on my GNU/Linux machine with 1,000,000 objects.  It used
> 988,560,213 bytes, almost a gigabyte.  So yeah, you would have blown the
> memory on the 32-bit computer early on.  My new question is why it even
> worked on your 8 gig computer... unless 3.7 stores objects more
> efficiently than 3.6?
> 
>> which was the most important reason, memory size or bit count?
> 
> Memory is certainly the deciding factor in this particular case, but bit
> count is an  upstream factor, as a 32-bit machine cannot address more
> than 4 gig.
> 
It worked on an 64 bits 8Gb system thank to virtual memory.
On the 32 bits system, even using the cache, it exceeded the hard 4Gb 
limit of adressable memory for a single process.


Post a reply to this message

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