Lou Montana/Sandbox – User

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Future Template:Header/Tutorial template)
(48 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category: Sandbox]]
[[Category: Sandbox]]
{{Informative | Future [[Simulation vs Render Time Scope]] page}}
<noinclude>
 
-----
{{SideTOC}}
Future [[Template:Header/Tutorial|Header/Tutorial]] template
{{GVI|arma2oa|1.60|Category}} {{GVI|arma3|1.00|Category}}
</noinclude><includeonly>{{Feature|informative
== Definitions ==
|
 
* {{#if:{{{target|}}}
=== Simulation Time Scope ===
| Target: {{#switch:{{{target}}}
 
  |0= newcomer
'''Simulation Time Scope''' is updated on a lower frequency to save performance the more distance between the unit and the camera the lower the refresh frequency will be.
  |1= beginner
{{cn}}
  |2= moderate
 
  |3= advanced
 
  |4= expert
=== Render Time Scope ===
  |#default= -wrong target defined-
 
}}
'''Render Time Scope''' is updated on a very high frequency (presumably on each frame).
| -no target defined-}}
The position of the unit is interpolated depending on its speed and movement direction.
* {{#if:{{{difficulty|}}}
Due to interpolation the position might not be accurate, but it's updated frequently, resulting in a smooth motion.
| Difficulty: {{#switch:{{{difficulty}}}
Usually, '''Render Time Scope''' should be used when something is visible to the player. [https://www.youtube.com/watch?v=6xUw0K292sw Video Showcase]
  |0= easy {{Colorball|green}}
{{cn}}
  |1= normal {{Colorball|orange}}
 
  |2= hard {{Colorball|red}}
 
  |#default= -wrong difficulty defined-
[[File:Render Visual Time Scope.gif|right]]
}}
== Simulation vs Render ==
| -no difficulty defined-}}
 
{{#if:{{{prerequisites|}}}
'''Simulation''' and '''Render''' cycles are separated '''since {{arma2oa}} v1.60'''.
|
This means that any object has now "two" positions: the computed one (simulation), and the visual one (render).
* Prerequisites:<br>
 
{{{prerequisites}}}
* For visual (e.g HUD-related) operations, use *visual [[:Category:Render Time Scope Scripting Commands|Render Time Scope scripting commands]] (e.g [[getPosATLVisual]])
}}
* "Normal" commands (e.g  [[getPosATL]]) are to be used if the position isn't updated frequently and the effect is not visible to players.
}}</includeonly><noinclude>{{Doc/Template
 
|descr= Tutorial header.
 
|param1= target
== Before Simulation and Render separation ==
|descr1= number in range 0..4: newcomer - beginner - moderate - advanced - expert
 
|param2= difficulty
From {{ofp}} to {{arma2oa}} v1.59, first the '''simulation''' updated the world's state (units position) ''then'' the visual '''rendering''' was done.<br>
|descr2= number in range 0..2: easy - normal - hard
Sequencing these operations works fine for non-intensive scenarios; as soon as the CPU reached its limits, the simulation frequency was lowered in order to maintain acceptable FPS, resulting in units visually "jumping".
|param3= prerequisites
 
|descr3= (Optional) free text for prerequisite tutorials/knowledge. make a (sub-)list with <nowiki>**</nowiki> and new lines
 
|example1= <nowiki>{{Header/Tutorial}}</nowiki>
== See Also ==
|result1= {{User:Lou_Montana/Sandbox}}
 
|example2= <nowiki>{{Header/Tutorial|target=0}}</nowiki>
* [https://www.bohemia.net/blog/experimental-betas-interpolating-the-future Experimental betas - Interpolating the future] blog article
|result2= {{User:Lou_Montana/Sandbox|target=0}}
* [https://forums.bohemia.net/forums/topic/151099-scripting-discussion-dev-branch/?page=21&tab=comments#comment-2720342 Sniperwolf572 forum post explanation]
|example3= <nowiki>{{Header/Tutorial|target=0|difficulty=0}}</nowiki>
|result3= {{User:Lou_Montana/Sandbox|target=0|difficulty=0}}
|example4= <nowiki>{{Header/Tutorial|target=0|difficulty=1|prerequisites=a prerequisite}}</nowiki>
|result4= {{User:Lou_Montana/Sandbox|target=0|difficulty=1|prerequisites=a prerequisite}}
|example5= <span style="white-space: pre"><nowiki>{{Header/Tutorial|target=0|difficulty=2|prerequisites=** prerequisite 1
** prerequisite 2}}</nowiki></span>
|result5= {{User:Lou_Montana/Sandbox|target=0|difficulty=2|prerequisites=** prerequisite 1
** prerequisite 2}}
}}</noinclude>

Revision as of 16:05, 16 April 2021



Future Header/Tutorial template Tutorial header.

This template is used on these pages.

Usage

{{Lou Montana/Sandbox|target|difficulty|prerequisites}}

  • target: number in range 0..4: newcomer - beginner - moderate - advanced - expert
  • difficulty: number in range 0..2: easy - normal - hard
  • prerequisites: (Optional) free text for prerequisite tutorials/knowledge. make a (sub-)list with ** and new lines
Examples
Code Result
{{Header/Tutorial}}
  • -no target defined-
  • -no difficulty defined-
{{Header/Tutorial|target=0}}
  • Target: newcomer
  • -no difficulty defined-
{{Header/Tutorial|target=0|difficulty=0}}
  • Target: newcomer
  • Difficulty: easy
{{Header/Tutorial|target=0|difficulty=1|prerequisites=a prerequisite}}
  • Target: newcomer
  • Difficulty: normal
  • Prerequisites:
a prerequisite
{{Header/Tutorial|target=0|difficulty=2|prerequisites=** prerequisite 1 ** prerequisite 2}}
  • Target: newcomer
  • Difficulty: hard
  • Prerequisites:
    • prerequisite 1
    • prerequisite 2