Skip to content

Commit bb85b4f

Browse files
committed
Update benchmark scene for v3.8.
1 parent 3dc2808 commit bb85b4f

File tree

7 files changed

+35
-35
lines changed

7 files changed

+35
-35
lines changed

changes.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ Changed Behaviour
7272
- `ambient` now defaults to 0.0 instead of 0.1.
7373
- The camera `right` vector length now defaults to the output image aspect
7474
ratio (presuming square pixels) instead of 1.33.
75+
- Minor changes have been made to the benchmark scene. New benchmark version
76+
is 2.03.
7577

7678
Other Noteworthy
7779
----------------

distribution/scenes/advanced/benchmark/benchmark.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,6 @@ Test_Abort=Off
7373
User_Abort_Command=
7474
User_Abort_Return=I
7575
Verbose=On
76-
Version=3.7
76+
Version=3.8
7777
Warning_Console=On
7878
Width=512

distribution/scenes/advanced/benchmark/benchmark.pov

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// This work is licensed under the POV-Ray v3.7 distribution license.
2-
// To view a copy of this license, visit http://www.povray.org/licences/v3.7/.
1+
// This work is licensed under the POV-Ray v3.8 distribution license.
2+
// To view a copy of this license, visit http://www.povray.org/licences/v3.8/.
33
//
44
// The following exception is granted to the above license terms:
55
// Permission is granted for this file and the output from it to be
@@ -13,7 +13,7 @@
1313
// Persistence Of Vision Ray Tracer Scene Description File
1414
//
1515
// File: benchmark.pov
16-
// Benchmark Vers: 2.02 Scene File Version
16+
// Benchmark Vers: 2.03 Scene File Version
1717
// Desc: POV-Ray benchmark scene
1818
// Date: October/November 2001 (initial release)
1919
//
@@ -24,7 +24,7 @@
2424
//
2525
// ==================================================================
2626
//
27-
// Standard POV-Ray benchmark version 2.02 Scene File Version
27+
// Standard POV-Ray benchmark version 2.03 Scene File Version
2828
//
2929
// This is the official POV-Ray benchmark scene. It is designed
3030
// to test a variety of POV-Ray features and should render in a
@@ -46,7 +46,7 @@
4646
// make sure the differences are made clear when publishing them.
4747
//
4848
// When publishing results, be sure to quote the exact version of the
49-
// benchmark scene used (2.02 Scene File Version), and the exact
49+
// benchmark scene used (2.03 Scene File Version), and the exact
5050
// version of POV-Ray.
5151
//
5252
// ==================================================================
@@ -64,6 +64,7 @@
6464
// Jan. 2013 change version to 2.01 to differentiate from beta.
6565
// Feb 2013 Updated for v3.7
6666
// Nov. 2017 Re-synced distribution copy with built-in copy (new ver is 2.02)
67+
// Nov. 2017 Updated for v3.8 (new ver is 2.03)
6768
//
6869
// ==================================================================
6970
//
@@ -149,15 +150,15 @@
149150
// User_Abort_Command=
150151
// User_Abort_Return=I
151152
// Verbose=On
152-
// Version=3.7
153+
// Version=3.8
153154
// Warning_Console=On
154155
// Width=512
155156
//
156157
// ==================================================================
157158

158-
#version 3.7;
159+
#version 3.8;
159160

160-
#default { texture { finish { ambient 0 diffuse 1 }}}
161+
#default { texture { finish { ambient 0.02 diffuse 1 }}}
161162

162163
#declare use_radiosity = false;
163164

@@ -202,12 +203,6 @@ global_settings {
202203

203204
}
204205

205-
#if (use_radiosity=false)
206-
#default {finish {ambient 0.02}}
207-
#else
208-
#default {finish {ambient 0.00}}
209-
#end
210-
211206
//====================================================================================
212207

213208
// This scene uses a non-standard camera set-up.
@@ -398,7 +393,7 @@ sphere { // --- Sky ---
398393
}
399394
finish {
400395
diffuse 0
401-
ambient 1
396+
emission 1
402397
}
403398
}
404399
scale Rad*<20, 20, 4>
@@ -732,7 +727,7 @@ text {
732727
#declare Version_Text =
733728
text {
734729
internal 1 // ttf "timrom.ttf"
735-
"Version 3.7"
730+
"Version 3.8"
736731
0.25,0
737732
scale 0.3
738733
rotate 90*x

source/backend/control/benchmark.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ bool Write_Benchmark_File (const char *Scene_File_Name, const char *INI_File_Nam
7474

7575
unsigned int Get_Benchmark_Version (void)
7676
{
77-
return (0x0202) ; // Benchmark version 2.02
77+
return (0x0203) ; // Benchmark version 2.03
7878
}
7979

8080
}

source/backend/control/benchmark_ini.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ extern const char Benchmark_Options[]=
117117
"User_Abort_Command=\n"
118118
"User_Abort_Return=I\n"
119119
"Verbose=On\n"
120-
"Version=3.7\n"
120+
"Version=3.8\n"
121121
"Warning_Console=On\n"
122122
"Width=512\n"
123123
""

source/backend/control/benchmark_pov.cpp

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
namespace pov {
4343

4444
extern const char Benchmark_File[]=
45-
"// This work is licensed under the POV-Ray v3.7 distribution license.\n"
46-
"// To view a copy of this license, visit http://www.povray.org/licences/v3.7/.\n"
45+
"// This work is licensed under the POV-Ray v3.8 distribution license.\n"
46+
"// To view a copy of this license, visit http://www.povray.org/licences/v3.8/.\n"
4747
"//\n"
4848
"// The following exception is granted to the above license terms:\n"
4949
"// Permission is granted for this file and the output from it to be\n"
@@ -57,7 +57,7 @@ extern const char Benchmark_File[]=
5757
"// Persistence Of Vision Ray Tracer Scene Description File\n"
5858
"//\n"
5959
"// File: benchmark.pov\n"
60-
"// Benchmark Vers: 2.02 Scene File Version\n"
60+
"// Benchmark Vers: 2.03 Scene File Version\n"
6161
"// Desc: POV-Ray benchmark scene\n"
6262
"// Date: October/November 2001 (initial release)\n"
6363
"//\n"
@@ -68,7 +68,7 @@ extern const char Benchmark_File[]=
6868
"//\n"
6969
"// ==================================================================\n"
7070
"//\n"
71-
"// Standard POV-Ray benchmark version 2.02 Scene File Version\n"
71+
"// Standard POV-Ray benchmark version 2.03 Scene File Version\n"
7272
"//\n"
7373
"// This is the official POV-Ray benchmark scene. It is designed\n"
7474
"// to test a variety of POV-Ray features and should render in a\n"
@@ -90,7 +90,7 @@ extern const char Benchmark_File[]=
9090
"// make sure the differences are made clear when publishing them.\n"
9191
"//\n"
9292
"// When publishing results, be sure to quote the exact version of the\n"
93-
"// benchmark scene used (2.02 Scene File Version), and the exact\n"
93+
"// benchmark scene used (2.03 Scene File Version), and the exact\n"
9494
"// version of POV-Ray.\n"
9595
"//\n"
9696
"// ==================================================================\n"
@@ -108,6 +108,7 @@ extern const char Benchmark_File[]=
108108
"// Jan. 2013 change version to 2.01 to differentiate from beta.\n"
109109
"// Feb 2013 Updated for v3.7\n"
110110
"// Nov. 2017 Re-synced distribution copy with built-in copy (new ver is 2.02)\n"
111+
"// Nov. 2017 Updated for v3.8 (new ver is 2.03)\n"
111112
"//\n"
112113
"// ==================================================================\n"
113114
"//\n"
@@ -193,15 +194,15 @@ extern const char Benchmark_File[]=
193194
"// User_Abort_Command=\n"
194195
"// User_Abort_Return=I\n"
195196
"// Verbose=On\n"
196-
"// Version=3.7\n"
197+
"// Version=3.8\n"
197198
"// Warning_Console=On\n"
198199
"// Width=512\n"
199200
"//\n"
200201
"// ==================================================================\n"
201202
"\n"
202-
"#version 3.7;\n"
203+
"#version 3.8;\n"
203204
"\n"
204-
"#default { texture { finish { ambient 0 diffuse 1 }}}\n"
205+
"#default { texture { finish { ambient 0.02 diffuse 1 }}}\n"
205206
"\n"
206207
"#declare use_radiosity = false;\n"
207208
"\n"
@@ -246,12 +247,6 @@ extern const char Benchmark_File[]=
246247
"\n"
247248
"}\n"
248249
"\n"
249-
"#if (use_radiosity=false)\n"
250-
" #default {finish {ambient 0.02}}\n"
251-
"#else\n"
252-
" #default {finish {ambient 0.00}}\n"
253-
"#end\n"
254-
"\n"
255250
"//====================================================================================\n"
256251
"\n"
257252
"// This scene uses a non-standard camera set-up. \n"
@@ -442,7 +437,7 @@ extern const char Benchmark_File[]=
442437
" }\n"
443438
" finish {\n"
444439
" diffuse 0\n"
445-
" ambient 1\n"
440+
" emission 1\n"
446441
" }\n"
447442
" }\n"
448443
" scale Rad*<20, 20, 4>\n"
@@ -776,7 +771,7 @@ extern const char Benchmark_File[]=
776771
"#declare Version_Text =\n"
777772
"text {\n"
778773
" internal 1 // ttf \"timrom.ttf\"\n"
779-
" \"Version 3.7\"\n"
774+
" \"Version 3.8\"\n"
780775
" 0.25,0\n"
781776
" scale 0.3\n"
782777
" rotate 90*x\n"

tools/meta-make/meta-make.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
# =============================================================================
4+
35
# Print header for single C++ source file.
46
# $1 - output file name
57
# $2 - input file name
@@ -62,10 +64,16 @@ function reswrap_benchmark {
6264
reswrap_text "source/backend/control/benchmark_$1" "distribution/scenes/advanced/benchmark/benchmark.$1" "pov" "$2"
6365
}
6466

67+
# =============================================================================
68+
69+
# TrueType Fonts
70+
6571
reswrap_ttf "crystal"
6672
reswrap_ttf "cyrvetic"
6773
reswrap_ttf "povlogo"
6874
reswrap_ttf "timrom"
6975

76+
# Benchmark Scene
77+
7078
reswrap_benchmark "pov" "Benchmark_File"
7179
reswrap_benchmark "ini" "Benchmark_Options"

0 commit comments

Comments
 (0)