SS3D icon indicating copy to clipboard operation
SS3D copied to clipboard

Performance optimization of the FieldOfView script

Open stilnat opened this issue 3 years ago • 0 comments

Summary

Checking the profiler, I noticed that the FieldOfView script is now taking a good chunk of the computation time per frame, it's in light blue on the picture below. That might be completely normal, but since it's taking around 15~20% of the CPU time on my computer, I think it's worth investigating.

image

Goal

Investigate the code of the FieldOfView script, try to find what's exactly require so much computation and if that could be reduced by a fair amount.

Context

This issue is from build 0.3.95h.

stilnat avatar Oct 19 '21 14:10 stilnat