benchmark: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|BENCHMARK]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|BENCHMARK]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|BENCHMARK]]
[[Category:Scripting Commands ArmA|BENCHMARK]]


| ofp |= Game name


<h2 style="color:#000066"> '''benchmark'''</h2>
|1.00|= Game version
____________________________________________________________________________________________


| 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
____________________________________________________________________________________________


'''Operand types:'''
| '''benchmark''' |= Syntax


None
| [[Number]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>? (benchmark>2000) : setViewDistance 2000</pre> |= Example 1
____________________________________________________________________________________________


'''Type of returned value:'''
|  |= See also


[[Number]]
}}


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


Value of "3D performance" in OFP preferences.
<!-- Note Section END -->
</dl>


This can be used to estimate computer performance.
<h3 style="display:none">Bottom Section</h3>


This function can be used to create missions that are able to adapt to computer peformance.
[[Category:Scripting Commands|BENCHMARK]]
 
[[Category:Scripting Commands OFP 1.96|BENCHMARK]]
 
[[Category:Scripting Commands OFP 1.46|BENCHMARK]]
'''Example:'''
[[Category:Scripting Commands ArmA|BENCHMARK]]
 
? '''benchmark''' > 2000 : [[setViewDistance]] 2000

Revision as of 22:07, 1 August 2006

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:
Uncategorised

Syntax

Syntax:
benchmark
Return Value:
Number

Examples

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

Additional Information

See also:
See also needed

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

Notes

Bottom Section