|
|
"StephenS" <sshonfield(at)ottawa(dot)net> wrote in message
news:43feecba$1@news.povray.org...
> While running an animation I've used the following line
> Statistic_File=Floorplan_F.txt, in the 'ini' file.
>
> I would like to have a graph of the render times, to see what frames take
> up
> the most time. Bonus points if I can selectively pick other interesting
> stats as required.
>
> What would be the best way to scan the resulting text file and extract
> this
> information on a Win98 system?
>
> Stephen
>
Hi Stephen,
The best way depends on where your skills lie, what software you have
available and how many times you are going to need to do it.
You need to:
1 - Pick out the values you need.
2 - Convert the 'hours', 'minutes', 'seconds' format into a single figure.
3 - Plot the results.
If you only need to do it once or twice I'd recommend using a decent text
editor to select the lines you want. Then use columnar selection to select
the column of data containing the hours and paste it into a spreadsheet
column. Then do the same with the minutes and seconds and use a cell
calculation to work out a single figure for the seconds for each frame. Use
the spreadsheet graphing functions to draw your graph.
Otherwise pick a language and parse the file. I like Rexx as a nice user
friendly scripting language (Regina is a free Rexx interpreter for Windows).
With Rexx you could pick out the values you need in just a few lines of code
and do the sums to work out a number of seconds. In fact with most languages
you wouldn't need many lines of code to pick out the values. You can write
out the totals into a Comma Separated Variable file and load it into a
spreadsheet or use it with POV-Ray to draw a spline.
Regards,
Chris B.
Post a reply to this message
|
|