Skip to content

Commit

Permalink
Fix #105 trace ray performance
Browse files Browse the repository at this point in the history
The cause for the performance drops was an awkwardly hooked function
(see #105) which caused the trace ray machinery to be run ten times per
freame during aiming in ranged combat. This is now resolved (tenfold
speed-up).
Performance can be further boosted by a new entry in the ini file which
introduces an adjustable recalculation frequency in milliseconds.
By default the trace ray/focus collection is recalculated at each frame.
When increasing the interval (to up to 500 ms) the focus collection
becomes less precise, but might boost the performance slightly on weak
machines (powerful machines will not benefit from this setting and
should keep the value close to zero).
Caution: Increasing this value beyond 45 ms will introduce a stutter
in spells like blink that continually visualize the aim vob.
  • Loading branch information
szapp committed Feb 25, 2017
1 parent 1aa5eac commit 3965dda
Show file tree
Hide file tree
Showing 5 changed files with 166 additions and 155 deletions.

0 comments on commit 3965dda

Please sign in to comment.