benchmark: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Some wiki formatting)
 
(31 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


|gr1= System |GROUP1=
|game3= arma1
____________________________________________________________________________________________
|version3= 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=
|game4= arma2
____________________________________________________________________________________________
|version4= 1.00


| [[Number]] <nowiki>=</nowiki> '''benchmark''' |SYNTAX=
|game5= arma2oa
|version5= 1.50


| [[Number]] |RETURNVALUE=
|game6= tkoh
____________________________________________________________________________________________
|version6= 1.00
 
|x1= <pre>? (benchmark>2000) : setViewDistance 2000</pre> |EXAMPLE1=
____________________________________________________________________________________________


| [[viewDistance]], [[setDetailMapBlendPars]], [[setTerrainGrid]], [[getObjectViewDistance]], [[setObjectViewDistance]] |SEEALSO=
|game7= arma3
|version7= 0.50


}}
|gr1= System


<h3 style="display:none">Notes</h3>
|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.
<dl class="command_description">
<!-- Note Section BEGIN -->


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


|r1= [[Number]]


<!-- Note Section END -->
|x1= <sqs>? (benchmark > 2000) : setViewDistance 2000</sqs>
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[viewDistance]] [[setDetailMapBlendPars]] [[setTerrainGrid]] [[getObjectViewDistance]] [[setObjectViewDistance]]
}}


[[Category:Scripting Commands|BENCHMARK]]
{{Note
[[Category:Scripting Commands OFP 1.99|BENCHMARK]]
|user= Killzone_Kid
[[Category:Scripting Commands OFP 1.96|BENCHMARK]]
|timestamp= 20140314135700
[[Category:Scripting Commands OFP 1.46|BENCHMARK]]
|text= The command is obsolete, it was used in {{ofp}} to measure PC performance. In {{arma3}} it returns 2000.
[[Category:Scripting Commands Armed Assault|BENCHMARK]]
}}
[[Category:Scripting Commands Arma 2|BENCHMARK]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 14:29, 29 July 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
Killzone_Kid - c
Posted on Mar 14, 2014 - 13:57 (UTC)
The command is obsolete, it was used in Operation Flashpoint to measure PC performance. In Arma 3 it returns 2000.