|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
I was wondering if there is a way add a counter to check parse times with. I
would like to know how long it takes to parse from point A to point B,
informing myself via #debug, like so:
#declare A = parse_time;
#debug "Parsing hf.png...\n"
#declare M = height_field {png "hf2.png" smooth}
#declare B = parse_time;
#debug concat("Done...parse time for hf.png: ",str(B-A,0,5),\n")
"parse_time" represents the variable that tells us how long POV-Ray has been
parsing until that point in the file. It should be measured in seconds and
their fractions.
Any ideas, oh brilliant programmers?
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In article <3846b2f6@news.povray.org> , "TonyB"
<ben### [at] panamaphoenixnet> wrote:
> I was wondering if there is a way add a counter to check parse times with. I
> would like to know how long it takes to parse from point A to point B,
> informing myself via #debug, like so:
>
> #declare A = parse_time;
> #debug "Parsing hf.png...\n"
> #declare M = height_field {png "hf2.png" smooth}
> #declare B = parse_time;
> #debug concat("Done...parse time for hf.png: ",str(B-A,0,5),\n")
>
> "parse_time" represents the variable that tells us how long POV-Ray has been
> parsing until that point in the file. It should be measured in seconds and
> their fractions.
Well, you can just use the file-IO to measure time. At the beginning of the
scene create one file, at each time you want to measure the time create
another. Depending on your file system you can get the time at least down to
seconds precision. Of course you have to calculate the differences manually
:-)
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Huh? Could you explain how creating a file gives me the time?
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Thu, 2 Dec 1999 16:24:58 -0500, "TonyB" <ben### [at] panamaphoenixnet>
wrote:
>Huh? Could you explain how creating a file gives me the time?
Time-date stamp?
--
Alan - ako### [at] povrayorg - a k o n g <at> p o v r a y <dot> o r g
http://www.povray.org - Home of the Persistence of Vision Ray Tracer
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
I know about that, but how is it accesible from POV?
Besides, you guys are proposing a work-around that requires (or so it seems)
a lot of work. Can't somebody just make it a built-in variable, like clock?
I mean, it has to exist for POV to report parse time, so you can just rewire
that number so that the user can access it. Right?
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Thu, 2 Dec 1999 16:58:20 -0500, "TonyB"
<ben### [at] panamaphoenixnet> wrote:
>I know about that, but how is it accesible from POV?
>
>Besides, you guys are proposing a work-around that requires (or so it seems)
>a lot of work. Can't somebody just make it a built-in variable, like clock?
>I mean, it has to exist for POV to report parse time, so you can just rewire
>that number so that the user can access it. Right?
Actually, it doesn't. POV starts the timer, does the initialization
stuff and goes on to parsing. After it's done parsing. it checks the
time, stores parsing time in total time, resets the counter and starts
rendering. After this has been done, it stops the timer, checks it,
remembers this as render time and adds it to total time. Provisions
are made for the case of animation.
On the other hand, it wouldn't be *that* hard to check the timer any
time during the parsing.
Peter Popov
pet### [at] usanet
ICQ: 15002700
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In article <3846eaef@news.povray.org> , "TonyB"
<ben### [at] panamaphoenixnet> wrote:
> I know about that, but how is it accesible from POV?
I didn't say so, I said: 'Of course you have to calculate the differences
manually'
The idea was that you don't have to wait for a patch ;-)
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
TonyB wrote:
>
> I know about that, but how is it accesible from POV?
>
> Besides, you guys are proposing a work-around that requires (or so it seems)
> a lot of work. Can't somebody just make it a built-in variable, like clock?
> I mean, it has to exist for POV to report parse time, so you can just rewire
> that number so that the user can access it. Right?
I'll tell you what I'm going to do... I have Bill's recent request for
a file associations change with the windows editor. I will lump your
request into Bill's and present it to the POV-Team at the appropriate
time. Chances are very good that you will not hear back on this but at
least I will make it part of the discision making process.
Fair enough ?
--
Ken Tyler - 1200+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Maybe a #timer feature. The syntax would be:
#timer TIMER_ID, "timer text" start|stop|pause
TIMER_ID would allow multiple timers. It would be used like this:
#timer 1, "start of tree timer, first tree" start
DoTree()
#timer 1, "finished with first tree" pause
DoOtherStuff()
#timer 1, "starting second tree" start
DoTree()
#timer 1, "finished with second tree" stop
The output would be like this:
START TIMER: 1|start of tree timer, first tree
parse time:xx hours, xx minutes, and xx seconds
timer time:xx hours, xx minutes, and xx seconds
PAUSE TIMER: 1|finished with first tree
parse time:xx hours, xx minutes, and xx seconds
timer time:xx hours, xx minutes, and xx seconds
START TIMER: 1|starting second tree
parse time:xx hours, xx minutes, and xx seconds
timer time:xx hours, xx minutes, and xx seconds
STOP TIMER: 1| finished with second tree
parse time:xx hours, xx minutes, and xx seconds
timer time:xx hours, xx minutes, and xx seconds
"parse time" would be the total duration of parsing up to that point,
"timer time" would be the amount of time accumulated in that timer up to
that point.
In the timer statement, "start" would start the time accumulating in the
timer, "pause" would stop the time accumulation, and "stop" would do the
same as "pause" but would also reset the timer accumulator to 0. They
would output the text to the status window formatted something like the
above, similar to #debug, #render, etc.
--
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
>Fair enough ?
=)
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|