User Tools

Site Tools


4rpl:commands:refreshunitloscache

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
4rpl:commands:refreshunitloscache [2021/02/07 16:06] virgilw4rpl:commands:refreshunitloscache [2022/03/23 00:51] – Further description and advise. Vertu
Line 7: Line 7:
 ===== Description ===== ===== Description =====
 Causes the unit to perform line of sight calculations based on the LOS settings. The results are stored and used by APIs like FindEnemy. The LOS cache should be updated when the unit is moved, but not more frequently than necessary. Causes the unit to perform line of sight calculations based on the LOS settings. The results are stored and used by APIs like FindEnemy. The LOS cache should be updated when the unit is moved, but not more frequently than necessary.
 +
 +The range of the unit is also a major factor in the performance intensity of calling this method. It is highly discouraged to use this method for any unit with a range larger than 100. If you however still do, the best way to deal with the performance intensity is to have each unit call RefreshUnitLosCache at a slightly different frame from each other to prevent major stutters.
 ===== Examples ===== ===== Examples =====
 <code 4rpl> <code 4rpl>
4rpl/commands/refreshunitloscache.txt · Last modified: 2024/01/19 01:11 by Vertu