benchmark: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Some wiki formatting)
 
(57 intermediate revisions by 12 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|BENCHMARK]]
{{RV|type=command
[[Category:Scripting Commands OFP 1.97|BENCHMARK]]
[[Category:Scripting Commands OFP 1.46|BENCHMARK]]
[[Category:Scripting Commands ArmA|BENCHMARK]]


|game1= ofp
|version1= 1.00


<h2 style="color:#000066"> '''benchmark'''</h2>
|game2= ofpe
|version2= 1.00


|game3= arma1
|version3= 1.00


'''Operand types:'''
|game4= arma2
|version4= 1.00


None
|game5= arma2oa
|version5= 1.50


'''Type of returned value:'''
|game6= tkoh
|version6= 1.00


[[Number]]
|game7= arma3
|version7= 0.50


'''Description:'''
|gr1= System


Value of "3D performance" in OFP preferences.
|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.


This can be used to estimate computer performance.
|s1= [[benchmark]]


This function can be used to create missions that are able to adapt to computer peformance.
|r1= [[Number]]


|x1= <sqs>? (benchmark > 2000) : setViewDistance 2000</sqs>


'''Example:'''
|seealso= [[viewDistance]] [[setDetailMapBlendPars]] [[setTerrainGrid]] [[getObjectViewDistance]] [[setObjectViewDistance]]
}}


? '''benchmark''' > 2000 : [[setViewDistance]] 2000
{{Note
|user= Killzone_Kid
|timestamp= 20140314135700
|text= The command is obsolete, it was used in {{ofp}} to measure PC performance. In {{arma3}} it returns 2000.
}}

Latest revision as of 15: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.