benchmark: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "[[Category:Scripting Commands ArmA|" to "[[Category:Scripting Commands Armed Assault|")
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
(32 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| ofp |Game name=
|game1= ofp
|version1= 1.00


|1.00|Game version=
|game2= ofpe
____________________________________________________________________________________________
|version2= 1.00


| Returns the value of "3D Performance" in OFP Preferences (flashpoint.cfg). This can be used to estimate the computer performance to adapt CPU and GPU demanding settings like view distance dynamically in missions. |DESCRIPTION=
|game3= arma1
____________________________________________________________________________________________
|version3= 1.00


| [[Number]] <nowiki>=</nowiki> '''benchmark''' |SYNTAX=
|game4= arma2
|version4= 1.00


| [[Number]] |RETURNVALUE=
|game5= arma2oa
____________________________________________________________________________________________
|version5= 1.50
 
|x1= <pre>? (benchmark>2000) : setViewDistance 2000</pre> |EXAMPLE1=
____________________________________________________________________________________________


| [[viewDistance]], [[setDetailMapBlendPars]], [[setTerrainGrid]], [[getObjectViewDistance]], [[setObjectViewDistance]] |SEEALSO=
|game6= tkoh
|version6= 1.00


|game7= arma3
|version7= 0.50
|gr1= System
|descr= Returns the value of "3D Performance" in OFP Preferences (flashpoint.cfg). This can be used to estimate the computer performance to adapt CPU and GPU demanding settings like view distance dynamically in missions.
|s1= [[benchmark]]
|r1= [[Number]]
|x1= <sqf>? (benchmark > 2000) : setViewDistance 2000</sqf>
|seealso= [[viewDistance]] [[setDetailMapBlendPars]] [[setTerrainGrid]] [[getObjectViewDistance]] [[setObjectViewDistance]]
}}
}}


<h3 style="display:none">Notes</h3>
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->


<dd class="notedate">Posted on 14 March 2014
<dt><dt>
<dt class="note>'''[[User:Killzone_Kid|Killzone_Kid]]'''
<dd class="notedate">Posted on 14 March 2014</dd>
<dt class="note">[[User:Killzone_Kid|Killzone_Kid]]</dt>
<dd class="note">
<dd class="note">
The command is obsolete, it was used in OFP to measure PC performance. In A3 it returns 2000.
The command is obsolete, it was used in OFP to measure PC performance. In A3 it returns 2000.
</dd>


<!-- Note Section END -->
</dl>
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|BENCHMARK]]
[[Category:Scripting Commands OFP 1.99|BENCHMARK]]
[[Category:Scripting Commands OFP 1.96|BENCHMARK]]
[[Category:Scripting Commands OFP 1.46|BENCHMARK]]
[[Category:Scripting Commands Armed Assault|BENCHMARK]]
[[Category:Scripting Commands Arma 2|BENCHMARK]]
[[Category:Command_Group:_System_Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 11:21, 13 May 2022

Hover & click on the images for description

Description

Description:
Returns the value of "3D Performance" in OFP Preferences (flashpoint.cfg). This can be used to estimate the computer performance to adapt CPU and GPU demanding settings like view distance dynamically in missions.
Groups:
System

Syntax

Syntax:
benchmark
Return Value:
Number

Examples

Example 1:
? (benchmark > 2000) : setViewDistance 2000

Additional Information

See also:
viewDistance setDetailMapBlendPars setTerrainGrid getObjectViewDistance setObjectViewDistance

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Posted on 14 March 2014
Killzone_Kid
The command is obsolete, it was used in OFP to measure PC performance. In A3 it returns 2000.