fs2open.github.com icon indicating copy to clipboard operation
fs2open.github.com copied to clipboard

Lasers fail to render when their center points are not onscreen

Open Kestrellius opened this issue 2 years ago • 0 comments

Currently, laser bolts (and lengthful particles, which function like lasers) are only rendered when their center points -- located at the rearmost edge of the laser -- are on the screen. When working with lasers or lengthful particles which are either very long or very slow, this results in noticeable, ugly pop-in, or the absence of effects which are supposed to be visible.

I would guess that the performance benefit from this behavior is tiny at best, so I suggest that laser rendering conditions be loosened. Either they should render as long as either the front point or rear point is on screen, or, ideally, they should render when any part of the laser is on screen.

The following video displays the undesirable visual behavior. I can supply a clearer example if it is not obvious enough here.

https://www.youtube.com/watch?v=l0KWlmiaE7o

Kestrellius avatar Jul 19 '23 20:07 Kestrellius